Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handler to stop a procedure?
Message
From
14/07/1999 14:29:12
 
 
To
14/07/1999 14:12:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00241384
Message ID:
00241415
Views:
12
Hi Guys,

>To add to what Mike said, you should keep the error traping code in the Error() method of the form, but remove the ON ERROR in the Click() event of the button.

Paul, If you're planning on making an industrial strength error handler, the Error() method in you're base classes for every control should be in sync with you're global error handler, passing on problems the object itself is not ready for. Check out the error handling article at www.stonefield.com is you wish to pursue this type of behaivor.

>The current object Error() method is allways the first method fired after an error has occured.

If Error() is not blank

>The ON ERROR may prevent the form from closing by keeping a reference to it.

Extremely good point.
Previous
Reply
Map
View

Click here to load this message in the networking platform