Kbase 18381: How to write an event on SPACE key ( SPACEBAR or SPACE-BAR )
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  09/11/1998 |
|
How to write an event on SPACE key ( SPACEBAR or SPACE-BAR )
In order to write an event in the 4GL that checks for the SPACEBAR
being pressed, it is necessary to use an actual space between double-
quotes:
ON " " OF select-1 DO:
MESSAGE "Spacebar pressed" VIEW-AS ALERT-BOX.
END.
The compiler will not accept keywords such as SPACE, SPACEBAR, or
SPACE-BAR.
Also, this keyboard event is not available in the UIB's event dialog.
In order to include it in UIB code, programmers should create extra
lines at the top of the Main Block section and place the code
there.