Kbase P97448: Is it possible to set the value of LASTKEY programmatically ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/20/2010 |
|
Status: Verified
GOAL:
Is it possible to set the value of LASTKEY programmatically ?
GOAL:
Can you programmatically set the value of LASTKEY?
FACT(s) (Environment):
Progress/OpenEdge Product Family
All Supported Operating Systems
FIX:
From OpenEdge 10.2B03 onwards, this ability is possible through a new method on the LAST-EVENT system handle:
LAST-EVENT:SET-LASTKEY(event-type, event-code)
event-type:
0 - keypress event
1 - mouse event
event-code:
The event code can be found by passing the key label or mouse event name to the KEYCODE function. For example:
KEYCODE("TAB") = 9
LAST-EVENT:SET-LASTKEY(0, 9)
KEYCODE("SHIFT-TAB") = 509
LAST-EVENT:SET-LASTKEY(0, 509)
KEYCODE("MOUSE-SELECT-CLICK") = 625
LAST-EVENT:SET-LASTKEY(1, 625)
This functionality is not available in versions lower than OpenEdge 10.2B03.