PRB: Cannot Call Suspend with the On Shutdown CommandLast reviewed: December 16, 1996Article ID: Q160919 |
The information in this article applies to:
SYMPTOMSWhen you type the Suspend command in an On Shutdown procedure, the following error message appears:
CANCEL or SUSPEND is not allowed.In order to quit Visual FoxPro, the On Shutdown command must be cleared by typing the "ON SHUTDOWN" (without quotation marks) command in the Command window.
CAUSEThis behavior is by design.
RESOLUTIONPlace the Suspend command in an event that occurs before Visual FoxPro actually begins to shutdown, as in the Destroy event of a form.
MORE INFORMATIONWhen you exit Visual FoxPro, you trigger the On Shutdown command. Once Visual FoxPro begins removing itself from memory, you cannot type the Suspend command. Steps to Reproduce Behavior
|
KBCategory: kbprg kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |