keycode_return_last_keycode_.htm
| Navigation: Language Reference > 13 - Built-in Functions > ISALPHA (return alphabetic character) > ====== KEYCODE (return last keycode) ====== | ![]() ![]() |
KEYCODE( )
The KEYCODE procedure returns the keycode of the last key pressed at the time the event occurred, or the last keycode value set by the SETKEYCODE procedure. The current list of key codes can be found in the KEYCODES.CLW source file.
| Return Data Type: | UNSIGNED |
Example:
ACCEPT !Loop on the display
CASE KEYCODE() !Process the keystroke
OF UpKey !up arrow
DO GetRecordUp !get a record
OF DownKey !down arrow
DO GetRecordDn !get a record
END
END
See Also:
keycode_return_last_keycode_.htm.txt · Last modified: by carlbarnes




