KEYCODE (return last keycode)

Top  Previous  Next

 

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:

ASK

ACCEPT

KEYBOARD

SETKEYCODE

KEYSTATE

Keycode Equate Labels

Keycode Equates List