Typically, ON ESCAPE uses DO to execute a procedure.
If both ON ESCAPE and ON KEY are in effect and you press ESC, Visual FoxPro executes the command specified with ON ESCAPE.
Use ON ESCAPE without a command to cause no command to execute when ESC is pressed (the default).
Note |
|---|
| Visual FoxPro doesn't execute an ON ESCAPE routine if SET ESCAPE is OFF. |