@FUNCTION_LIST

Type/Length:    INT, 3, Occurs 10

Contains the list of valid function key codes for implementing hot keys.  The processing of function keys will terminate on the first zero key code in the list.  The default value is zero and occurs 10 times.

In order to cause the execution of a function routine or trigger there must be at least one value stored in list.  When a valid function key is entered it’s value is stored in @FUNCTION_CODE.

EXAMPLE

Set PF1, PF2 and PF3 as hot keys

@FUNCTION_LIST (1) = 256
@FUNCTION_LIST (2) = 257
@FUNCTION_LIST (3) = 258

In a FILL or MENU LAYOUT DEFINE a hot key routine.

\FUNCTION HOT_KEY_PROCESS

Now in the routine HOT_KEY_PROCESS test for the key entered: 

IF @FUNCTION_CODE = 256
PERFORM HOT_KEY_PF1

ORIF @FUNCTION_CODE = 257
PERFORM HOT_KEY_PF2

ORIF @FUNCTION_CODE = 258
PERFORM HOT_KEY_PF2

NOTE:  No entry in this list should contain any value stored in:  @TERM_LIST, @END_CODE, @CANCEL_CODE, @HELP_CODE, @REFRESH_CODE,  or Delete Key (127).

SEE ALSO:  Function Statement

Back to @END_CODE    Next page @FUNCTION_CODE