Release 10.1A: OpenEdge Development:
Programming Interfaces

> ## 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 4–2 shows how the conversions work, and which functions to use for each conversion.

> Figure 4–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 OpenEdge Development: Progress 4GL Reference for more information on the `KBLABEL`, `KEYCODE`, `KEYFUNCTION`, and `KEYLABEL` functions.

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