Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this possible?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00775497
Message ID:
00775506
Views:
17
>I hope this is possible. If it isn't I think it would be a pretty nice feature.
>
>Here is what I would like to accomplish: I want to store the current on error command, then set on error to something else, then do my stuff and finally set the on error back to what it used to be. i.e.
>
>
>store on error to OldOnError
>on error TempOnErrorProcedure()
>*some code
>on error &OldOnError
>
>
>Please let me know if you think this is a crazy idea.
>
>Thanks,
>Einar

Einar,

it is possible, with one slight modification
local OldOnError
OldOnError = on('error')

on error TempOnErrorProcedure()
*some code
on error &OldOnError
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform