Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I exit a form when an error occurs during load?
Message
From
12/07/1996 13:34:29
Paul Wei
Fib, State of Michigan
Lansing, Michigan, United States
 
 
To
12/07/1996 13:21:50
Paul Wei
Fib, State of Michigan
Lansing, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00003871
Message ID:
00003874
Views:
24
>I'm explicitly opening tables in a form's

Let me try again. I'm opening tables in the form's load method and trapping for errors at the same time. When an error occurs, I want to exit the form right away. I am using the "release thisform" command to try to stop the form from continue to load. This is not working right now.

My code in the load method looks something like:

on error do err_rtn
use xxx
on error
if err_flg &set in err_rtn
release thisform
return
endif

While I can exit the load method this way, the form seems to be keep on loading. What method should I use? Thanks for your help.


Paul
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform