canNavigate example
The following canNavigate event handler fires the form’s row-level validation method, but only if the navigation occurred in the current table; for example not in some table being used for a lookup.
function form_canNavigate( nWorkArea )
if nWorkArea == workarea()
return form.recValid() // If row is bad, don't move
else
return true
endif