PRB: "DO Nesting Too Deep" with ON KEY LABEL Command from 2.0ID: Q105146 The information in this article applies to:
SYMPTOMSAn ON KEY LABEL command that works in FoxPro 2.0 generates a "DO nesting too deep" error message in FoxPro 2.5 for MS-DOS and Windows.
CAUSEIn FoxPro 2.0, you can use a recursive ON KEY LABEL command such as ON KEY LABEL SPACEBAR KEYBOARD '{SHIFT+SPACEBAR}.' However, if you use a recursive ON KEY LABEL command in FoxPro 2.5 for MS-DOS and Windows, you will receive the above-mentioned error. This is correct behavior because you are using a key that is used to call the ON KEY LABEL command.
RESOLUTIONTo correct this problem, append the PLAIN clause to the end of the ON KEY LABEL command, as shown at the end of the "More Information" section below.
MORE INFORMATIONThe following code illustrates the problem. This code can be run from a .PRG file.
When the SPACEBAR is pressed in FoxPro 2.0, FoxPro will mark the bar
as selected. In FoxPro 2.5 for MS-DOS and Windows, FoxPro will give
you the above-mentioned error message. To correct this situation in
FoxPro 2.5, issue the following ON KEY LABEL command instead:
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a errmsg err msg
KBCategory: kbprg kberrmsg kbprb
KBSubcategory: FxprgGeneral
|
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |