Progress
Language Reference
KEYLABEL Function
Evaluates a key code (such as 301) and returns a character string that is the predefined keyboard label for that key (such as F1).
SYNTAX
key-code
The key code of the key whose label you want to know. A special case of key-code is LASTKEY. See the Progress Programming Handbook for a list of key codes and key labels.
EXAMPLEThis procedure reads each keystroke the user makes, leaving the procedure only when the user presses GO. The KEYLABEL function tests the LASTKEY pressed, and returns the label of the key. (Remember that the value in LASTKEY is the key code of the last key pressed.)
NOTE
Some key codes can be associated with more than one key label. The KEYLABEL function always returns the label listed first in the Progress table of key labels.
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |