[Migrated content. Thread originally posted on 01 March 2012]
Hi all :-)I would like a user to have the possibility to "break out" of a program execution by pressing the Escape key. I have the following code to determine if the user pressed the Escape key during the run:
ACCEPT KBD-INPUT-STATUS FROM INPUT STATUS.
IF KBD-INPUT-STATUS = ZERO
EXIT PARAGRAPH.
ACCEPT OMITTED
BEFORE TIME 0
WITH NO ADVANCING
ON EXCEPTION
ACCEPT KBD-HIT-KEY FROM ESCAPE.
Unfortunately the code halts if the user presses the space key.
Anyone have a better idea hos to dertermine if the user pressed the Escape key without having to hold the execution until a key is pressed ?
Thanks in advance.
Steen
