PRB: Selecting Cancel Cancels User Code But Not Form Execution
Article ID: 130342
Article Last Modified on 2/10/2000
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
This article was previously published under Q130342
SYMPTOMS
The 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.
CAUSE
The 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.
WORKAROUND
If 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.
STATUS
This behavior is by design.
Additional query words: VFoxWin Suspend Ignore Help
Keywords: KB130342