Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error trapping
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00147439
Message ID:
00147495
Views:
24
>Hello All,
>I've created an inhouse wizard in
>VFP5 that can also be called as a function from
>another application. In this second
>functionality, I have had to create an error
>handler. Just as with other envoironmental
>issues, how can I find what the current error
>routine is so I can restore it when the wizard is
>done processing
>
>Thanks
>
>Sandy

Sandy,

At the begining of your wiuzard save the value returned from ON("ERROR"), then at the end set it back again;

LOCAL (or PRIVATE) lcError
lcError = ON("ERROR")

...

ON ERROR &lcError
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform