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
From
13/02/2002 14:33:52
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00618670
Message ID:
00619643
Views:
16
Hi Nadya.

>I don't understand, where this code should be put. Say, we have several applications, which are class based or form based and use their own Error method. These applications can invoke UDFs, what in turn have something like
>lcOldError = on('error')
>on error do mycustomUDFProcedure
>some code
>on error &lcOldError
>
>So, are you suggesting, what these applications (or Error form class, which they are based on, should have these lines at the top of Error method)?

We're suggesting either that the Error method of the object calling the UDF have this code in it or (a better choice) is to call a UDF wrapper class rather than calling the UDF directly, and the UDF wrapper class would have this code.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform