Microsoft KB Archive/92963
Differences Between ON ESCAPE and ON KEY LABEL ESCAPE
The information in this article applies to:
An ON ESCAPE routine is called when the user attempts to interrupt program execution. An application can disable the ON ESCAPE routine with the SET ESCAPE OFF command.
An ON KEY LABEL ESCAPE routine is called when program execution has stopped and the application is waiting for user input. This routine is called regardless of the SET ESCAPE setting.
The following sample application demonstrates the differences between the ON KEY LABEL ESCAPE and ON ESCAPE commands:
ON ESCAPE WAIT WINDOW 'On Escape' ON KEY LABEL ESCAPE WAIT WINDOW 'On Key Label Escape' WAIT WINDOW 'Press Escape While The Counter is Incrementing' NOWAIT FOR x = 1 to 500 ?x ENDFOR USE customer WAIT WINDOW 'Press Escape after BROWSE window is showing' NOWAIT BROWSE ON KEY ON ESCAPE
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a KBCategory: kbprg KBSubcategory: FxprgBrowse
Last Reviewed: June 27, 1995