Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing a form from within error method.
Message
 
 
To
20/11/2001 10:03:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00583921
Message ID:
00583927
Views:
20
This message has been marked as the solution to the initial question of the thread.
>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

Mark,
After calling the release, you could have a RETURN TO line that returns to the method/procedure that actually launched the form (if modal) or initiated the process that caused the error. Check out the help on RETURN. You can alos check out the following for more discussions about this:

Thread#543789
Thread#447637

Also, check out Doug Hennig's whitepaper on error handling at his web site.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform