HP RPG/XL Programmer's Guide (30318-90001)

4- 58
5 This is the second element of the array MSG and is displayed in
line 3.
Using Function Keys with RSI. When you enable any or all of the function
keys F3 - F8 in SIGEDITOR, their labels (as shown below) appear. If
you do not enable them, the labels F3-F8 appear. Even though the
function keys are enabled, RSI does not perform any action when the user
presses them. You must perform the processing yourself by entering
Calculation Specifications.
The function keys are:
Function Key Description
F1 (COMMAND) Used in conjunction with one of the keys on the
top row of the keyboard to turn on the
corresponding command key indicator.
F2 (PRINT SCREEN) If enabled, the function key label PRINT SCREEN
appears though no printing takes place. You
must enter Calculation Specifications to
perform this function. If not enabled, the
label *PRINT SCREEN appears and the contents of
the screen are written to RSIPRINT (DEV=LP).
F3 (ROLL UP) If enabled, you must enter the Calculation
Specifications to perform this function.
F4 (ROLL DOWN) If enabled, you must enter the Calculation
Specifications to perform this function.
F5 (CLEAR) If enabled, you must enter the Calculation
Specifications to perform this function.
F6 (HELP) If enabled, the function lable HELP appears.
You must enter the Calculation Specifications
to perform this function. If not enabled, the
label *HELP appears and the application help
facility is activated when the key is pressed.
F7 (RECORD BACKSPACE) If enabled, you must enter the Calculation
Specifications to perform this function.
F8 (DUPLICATION) If enabled in the Attribute Specification
screen of SIGEDITOR, this key fills the field
(from the cursor position to the end of the
field) with the hexadecimal character 1C (^)
and moves the cursor to the next field. You
can check for these characters and take
appropriate action. For example, you may want
to reuse the field's previous value.
If the user presses a function key that is not enabled, the message
"FUNCTION KEY NOT ENABLED AT THIS TIME" is displayed momentarily.
To determine which function key was pressed, check the value in the first
element of the RSI STATUS array. (Refer to the
HP RPG Reference Manual
for these values.) Figure 4-30 shows how to test the array STAT to
determine if the user pressed F4 (ROLL DOWN).