User Tools

Site Tools


keycode_return_last_keycode_.htm
Navigation:  Language Reference > 13 - Built-in Functions > ISALPHA (return alphabetic character) > ====== KEYCODE (return last keycode) ====== Previous pageReturn to chapter overviewNext page

KEYCODE( )

blk2blue.jpg

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

KEYCHAR

SETKEYCODE

KEYSTATE

Keycode Equate Labels

Keycode Equates List

keycode_return_last_keycode_.htm.txt · Last modified: 2021/04/15 14:33 by carlbarnes