Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get error handler?
Message
 
 
To
01/09/1998 17:09:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00132084
Message ID:
00132340
Views:
12
>Is the original error handler set using ON ERROR? If so, you can use Josh's suggestion in the following manner:
>
>PROCEDURE MyFunction
>LOCAL cErrorHandler
>cErrorHandler=ON("ERROR")
>ON ERROR DO newhandler   && Change
>.
>.
>IF !EMPTY(cErrorHandler)
>   ON ERROR &cErrorHandler
>ENDIF
>RETURN  && Back to calling program
>
>

IF !EMPTY(cErrorHandler)
ON ERROR &cErrorHandler
ELSE
ON ERROR && <<- If you dont put this then the error handler remains
&& in effect in the calling program!
ENDIF
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Reply
Map
View

Click here to load this message in the networking platform