Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling problem - Help!
Message
From
12/06/2002 11:37:08
 
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00667122
Message ID:
00667440
Views:
20
If the code causing the error is in a form method, yes, I think you have to catch the error in the form error method.

If you know exact error numbers you want to trap, David's solution is simpler.

>
>So, I should override the error at the FORM level, rather than down in the object performing the action that caused the error? Is that how error handling in VFP usually works - from the top down?
>

If the code was in within an object method on the form, use the error() method of that object to trap the problem. For example, if you put code in the click() method of commandButton (which I don't generally do), any error caused in that code will fire the error() method of that commandButton.

At www.stonefield.com, in the Technical Papers section, Doug has a good paper on error handling.

>If so, that was the gap in my understanding...
>
>TIA
>Michael
>
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform