Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to catch an error within an error handler in VFP6
Message
From
10/11/2004 19:21:08
James Chan
Objectmastery Pty Ltd
Hawthorn, Australia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00959865
Message ID:
00960250
Views:
13
This would mean I have to add the error traping code in all programs. Is there a more generic way?

I currently have an ErrorTrap() rountine and set
on error do ErrorTrap()
Things are generally ok until something changed (e.g. network drive map changed etc) which cause some lines in ErrorTrap() failed. What I need is to trap those errors within ErrorTrap(). Any idea?
----

> There is no sucha a exception handler in VFP 6. But You can manage it by old & tesed way:
old_error = ON("ERROR")
fl_error  = .f.
ON ERROR fl_error  = .t.
Do Whatevr You want
ON ERROR &old_error
IF fl_error
   ** Manage Error here
ENDIF
James Chan
ObjectMastery Pty Ltd
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform