Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling in VCX
Message
From
31/01/2002 00:37:07
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
30/01/2002 09:53:27
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00612641
Message ID:
00613201
Views:
15
>Uhmmm...I think I understand it. I'm more used to simple highly scoped error handlers (VB, VBA,Delphi, Oracle) than VFP's layered approach. I can't think of another language that does it the same way. Anyway, it causes my brain to ache when I'm trying to work out where my error handler is at any one time. I'll get used to it once I've pushed it hard enough.

Fox takes encapsulation a step further. Each object should take care of its own errors. IOW, the errors should be handled locally if possible, if not, pass it up using dodefault() which would eventually call the .parent.error etc. Pretty much like medicine - handle easy cases on the spot, send the rest to a doctor, and the doctor may pass them further up to surgery, which may eventually handle the worst cases.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform