Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing a form from within error method.
Message
From
20/11/2001 10:03:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Releasing a form from within error method.
Miscellaneous
Thread ID:
00583921
Message ID:
00583921
Views:
46
I'm a VFP newbie. I'm using VFP 6 SP 5.

I have an code in the error method of a form that I want to process the error and then close the form. Example:

Error Method:

messagebox("Error occured. Closing form.")
thisform.release


The problem with this is that is finishes processing code in the method that caused the error. Once that method has completed the form then closes. I want to be able to close the form when an error occurs without processing any more code on that form. Is this possible? What am I doing wrong? Thanks

Mark Hoffman
Next
Reply
Map
View

Click here to load this message in the networking platform