Use of the ON SHUTDOWN CommandLast reviewed: April 30, 1996Article ID: Q110970 |
The information in this article applies to:
SUMMARYThe ON SHUTDOWN command specifies a command that executes when you try to exit FoxPro for Windows or Microsoft Windows.
MORE INFORMATIONThe command specified in ON SHUTDOWN is executed if you try to exit FoxPro for Windows by double-clicking the FoxPro Control-menu box, by choosing Exit from the FoxPro Control menu, or by issuing the QUIT command in the Command window or in a program. If you try to exit Microsoft Windows from the Windows Program Manager while FoxPro for Windows is open, control is returned to FoxPro for Windows and the command you specify in ON SHUTDOWN is executed. The ON SHUTDOWN command is typically a DO command that executes a routine to display a dialog box. The dialog box asks if you are sure you want to exit the current application and FoxPro for Windows. If you want to exit the application, the routine can close any open files, clean up the FoxPro for Windows environment, and then execute the QUIT command. If you don't want to exit the current application, the routine can return control to the application. NOTE: If you cannot exit the development version of FoxPro for Windows, try typing "ON SHUTDOWN" (without the quotation marks) in the Command window to clear the current ON SHUTDOWN command and allow FoxPro for Windows to exit normally.
Command Window Example
|
Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.50a 2.50b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |