Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap errors with ON ERROR while error event in pl
Message
 
 
To
13/02/2002 04:05:20
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00618670
Message ID:
00619585
Views:
21
Walter,

It's a very good JI *s*

I only use error handlers to handle true errors. If there is a need for defensive code that will prevent a possible error from occuring I always use it. IMHO error handling should not be part of the "normal" operation of the code.

>PMFJI, but there is one thing people should be aware off. The RI mechanism in the standard VFP RIBuilder (and my TaxRiBuilder for that matter) rely on the ON ERROR mechanism.
>
>If in an object with code in the error event triggers the RI code in the database, you'll have to handle the cases that error event fires because of errors in the RI procedure. I think this also has been pointed out by doug hennig in one of its articles on his website.
>
>Therefore I tend to use error events only in cases where absolutely needed and there where there is no chance of intermixing it with the ON ERROR handler.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform