FIX: ON SHUTDOWN Command Produces "Syntax Error"Last reviewed: October 20, 1997Article ID: Q114234 |
2.60
MS-DOS
kbprg kbfixlist kbbuglist kberrmsg
The information in this article applies to:
SYMPTOMSThe ON SHUTDOWN command produces a "Syntax Error" error message when it is compiled or executed in FoxPro for MS-DOS.
CAUSEThis command is not supported in FoxPro for MS-DOS. This command is supported only in FoxPro for Windows and FoxPro for Macintosh. The concept of a shutdown event is not relevant in a single-tasking operating system such as MS-DOS.
RESOLUTIONDo not use this command in FoxPro for MS-DOS. When developing cross- platform applications, you can use the _DOS system memory variable to prevent the ON SHUTDOWN command from being executed when the code is executed under FoxPro for MS-DOS. For example:
IF _DOS =.F. ON SHUTDOWN DO myprog ENDIFUsing this approach, the ON SHUTDOWN command will be executed only when the code is run under FoxPro for Windows or FoxPro for Macintosh.
STATUSThis problem was corrected in Microsoft FoxPro for MS-DOS version 2.6a. Because FoxPro 2.6a ignores the ON SHUTDOWN command, no syntax error occurs.
|
Additional reference words: FoxDos 2.60 buglist2.60 errmsg err msg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |