Progress
Programming
Handbook


Key Translation Functions

Progress key codes, key labels, and key functions are interrelated, and Progress provides a set of built-in functions to convert from one to another. Figure 6–2 shows how the conversions work, and which functions to use for each conversion.

Figure 6–2: Progress Key Translation Functions

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.

KEYCODE("del") 

For example, the following function returns the value CTRL–G:

KEYLABEL(7). 

See the Progress Language Reference for more information on the KBLABEL, KEYCODE, KEYFUNCTION, and KEYLABEL functions.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095