The following onNavigate event handler calls a custom form method called refreshUnlinked( ) method to update components on the form that are not dataLinked directly to fields so that the components contain the correct information as the user moves from record to record. It does this only if the navigation occurred in the main work area, the one that’s usually selected; not in another work area that, for example, has a lookup table.

function Form_onNavigate(nWorkArea

   if nWorkArea == workarea() 

      form.refreshUnlinked() 

   endif 

For example, you might display the current record number in a Text component, which does not get automatically updated.

function refreshUnlinked()

   form.recnoText.text := "" + recno() + "/" + reccount()