Key translation functions
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Key translation functions
ABL key codes, key labels, and key functions are interrelated, and ABL provides a set of built-in functions to convert from one to another. The following figure shows how the conversions work, and which functions to use for each conversion.

You can use the KEYCODE function to determine
the key code for a particular key. For example, the following function
returns the value 127, which is the integer code assigned to DEL. Use the KEYLABEL function
to determine the keyboard label for a particular key code. For example:
|
The following function returns the value CTRL+G:
|
See ABL Reference for more
information on the KBLABEL, KEYCODE, KEYFUNCTION,
and KEYLABEL functions.