KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Highlighting the last record loaded
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: August 7, 2006

By default, when you exit out of the input form and revert back to the output form, the record highlighted in the output form is not the last record you loaded. The highlighted record is the record initially selected to enter the input form. If you would like to highlight the last record loaded, you can place the following code below in your input form method.

If (Form event=On Unload )
   CREATE EMPTY SET([Table 1];"test")
   ADD TO SET([Table 1];"test")
   HIGHLIGHT RECORDS([Table 1];"test")
   CLEAR SET("test")
end if