FUNCTION STATEMENT IN MENU LAYOUTS

FUNCTION allows the implementation of function keys (or hot keys).  Once the function key trigger is defined, it is valid for all Forms and Menus invoked while the current Menu or Fill is active.  There is no limit to the number of levels in which the function key trigger can be used.  (The function key trigger can be overridden at any time by a lower level Fill or Menu being executed with its own function statement.)

SYNTAX

[/FUNCTION function_trigger_name]

function_trigger_name

name of trigger that will execute when a valid function key code is entered (from @FUNCTION_LIST).  @FUNCTION_CODE stores the specific function key code entered.  The trigger will specify which function key performs which function.

EXAMPLE

/  FUNCTION KEY_OPTIONS

NOTE:  This allows the execution of a routine when a menu layout is being executed no matter where the user is in the execution of the menu.  It could execute another FILL to get additional information or terminate the current menu.

SEE ALSO:  @FUNCTION_LIST, @FUNCTION_CODE, and System Fields.

Border statement in Menu Layouts    Message Statement in Menu Layouts