Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get error handler?
Message
 
 
À
01/09/1998 17:09:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00132084
Message ID:
00132340
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform