Hot keys work in the same way as function keys, except that when they have been set up, they can be used to execute the corresponding procedure from any point in your program. At the end of the procedure, control returns to the point at which the hot key was pressed.
Hot keys differ from function keys defined in combined menu/entry procedures in the following ways:
| Hot Keys | Function Keys with Data Entry |
|---|---|
| No map | Has a map for data entry screen |
| Cannot be selected in the procedure in which they are set up | Can be selected in the Combined Menu/Entry procedure which sets them up |
| Can be selected in subsequent Interactive, Combined Menu/Entry and in procedures where the access mode on the table is Window | Can only be selected in the Combined Menu/Entry procedure in which they are set up |
| Can be switched off by defining a Hot key set up procedure with no subsidiaries | Function keys are not available outside the Combined Menu/Entry procedure |
| Selecting a function key causes the hot key procedure to be called, with a subsequent return to the point in the calling procedure where it was selected | Selection of the function key terminates the procedure in which it is selected, followed by the execution of the function key procedure |
The following guidelines should be observed when using Hot keys:
To use hot keys in your program:
