PRB: Selecting Cancel Cancels User Code But Not Form ExecutionLast reviewed: April 30, 1996Article ID: Q130342 |
The information in this article applies to:
SYMPTOMSThe form runs and appears even though you clicked Cancel in the Program Error dialog box. The form and all objects are not removed from memory.
CAUSEThe Cancel button is supposed to cancel running code only. This is by design. The form is not code, so clicking Cancel has no affect on the form. All Cancel is supposed to do is cancel all the procedures, methods, and events currently in the call stack. It is aware of the existence of objects.
WORKAROUNDIf you want to kill the object upon an occurrence of a program error, you can suspend the program, release the object, and then cancel the program.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: 3.00 VFoxWin Suspend Ignore Help
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |