Previous Next

CODE attribute
A numeric code associated with the last event.
Data type:
Access:
Applies to:
For keyboard and mouse events (EVENT-TYPE attribute set to "KEYPRESS" or "MOUSE"), this is the key code. For high-level ABL events (EVENT-TYPE attribute set to "PROGRESS"), this is a unique numeric value greater than the key code values. For information on key codes, see the chapter on handling user input in OpenEdge Development: Programming Interfaces.
If a mouse event is high-level mouse event (for example, MOUSE-SELECT-CLICK), this attribute is set to the key code of the low-level mouse event (for example, MOUSE-SELECT-UP) that triggered the high-level event. To determine the triggered high-level event, you must also check the value of the FUNCTION attribute, in this case "MOUSE-SELECT-CLICK".

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.