How to Undo ON KEY LABEL ENTER Command After ErrorLast reviewed: June 27, 1995Article ID: Q113922 |
The information in this article applies to:
SUMMARYUnder certain circumstances, you may want to redefine the ENTER key so that it performs an action, such as executing a procedure. However, if an error occurs during development before the ENTER key is returned to its original state, no commands can be entered in the Command window, and the statement following the ON KEY LABEL ENTER command will attempt to execute instead.
MORE INFORMATIONIssuing the command "ON KEY LABEL ENTER <function or command>" prior to the point at which that action is desired will cause that statement to be executed when the ENTER key is pressed. To return the ENTER key to its normal functionality, the command "ON KEY LABEL ENTER" (with nothing following it) should be the first line of code in the procedure or function (or the second line if there is a PARAMETER statement). However, errors may occur before the line returning the ENTER key to the default is executed, preventing the ENTER key from terminating commands in the Command window. The following methods will allow you to restore the normal functionality of the ENTER key. After returning to the Command window from the error condition, do the following:
Method 1
Method 2
|
Additional reference words: FoxDos FoxWin 2.50 2.50a 2.50b 2.60 hung hang
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |