>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#
543789Thread#
447637Also, check out Doug Hennig's whitepaper on error handling at his web site.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao