Article ID: 160919 - Last Review: December 3, 2003 - Revision: 3.1 PRB: Cannot Call Suspend with the On Shutdown CommandThis article was previously published under Q160919 On This PageSYMPTOMS
When you type the Suspend command in an On Shutdown procedure, the
following error message appears:
CANCEL or SUSPEND is not allowed.
CAUSE
This behavior is by design.
RESOLUTION
Place the Suspend command in an event that occurs before Visual FoxPro
actually begins to shutdown, as in the Destroy event of a form.
MORE INFORMATION
When 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
| Article Translations
|
Back to the top
