PRB: ON KEY LABEL <key label> KEYBOARD "{ESC}" Does Not WorkLast reviewed: June 27, 1995Article ID: Q121961 |
The information in this article applies to:
SYMPTOMSUsing the ON KEY LABEL to define another key on the keyboard to act as if it were the ESC key does not work.
CAUSEIssuing the command ON KEY LABEL <key label> KEYBOARD "{ESC}" at the Command Window or in a program will cause the following error: in FoxPro for MS-DOS:
Interrupted
<Cancel> <Suspend> <Ignore>
in FoxPro for Windows, and FoxPro for Macintosh:
Program Error
Interrupted
<Cancel> <Suspend> <Ignore>
This error is caused because the ON KEY LABEL routine thinks that it is
being interrupted and asks the user to Cancel, Suspend, or Ignore itself.
RESOLUTIONTo enable the ON KEY LABEL to define another key on the keyboard as the ESC key without generating an error, add the PLAIN clause:
ON KEY LABEL <key label> KEYBOARD "{ESC}" PLAIN
By adding this clause, you tell FoxPro to place the literal key label into
the keyboard, not the key assignment. It is the key assignment that causes
the error to occur.
|
Additional reference words: FoxWin FoxDos FoxMac on key label keyboard esc
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |