>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