Return to the RPG Tips
Function key hex values
Define an INFDS data structure for the workstation file that includes: D Infds DS D KeyPress 369 369 The sub field ?KeyPress? is the Attention Identification Byte (AID Byte), which is populated by the operating system with the hexadecimal value of the Function Key that was pressed. The following lists all the Hex values needed: D F1 C CONST(X'31') D F2 C CONST(X'32') D F3 C CONST(X'33') D F4 C CONST(X'34') D F5 C CONST(X'35') D F6 C CONST(X'36') D F7 C CONST(X'37') D F8 C CONST(X'38') D F9 C CONST(X'39') D F10 C CONST(X'3A') D F11 C CONST(X'3B') D F12 C CONST(X'3C') D F13 C CONST(X'B1') D F14 C CONST(X'B2') D F15 C CONST(X'B3') D F16 C CONST(X'B4') D F17 C CONST(X'B5') D F18 C CONST(X'B6') D F19 C CONST(X'B7') D F20 C CONST(X'B8') D F21 C CONST(X'B9') D F22 C CONST(X'BA') D F23 C CONST(X'BB') D F24 C CONST(X'BC') * Page Down/Roll Up D RollUp C CONST(X'F5') D PageDown C CONST(X'F5') * Page Up/Roll Down D RollDown C CONST(X'F4') D PageUp C CONST(X'F4') * Enter D Enter C CONST(X'F1') D Help C CONST(X'F3') D Print C CONST(X'F6')
[report a broken link by clicking here]