Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling
Message
De
04/01/2002 05:48:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Error handling
Divers
Thread ID:
00600666
Message ID:
00600666
Vues:
68
Is there any way I can get an Error handler to stop the processing of the original procedure/function (i.e. that caused the error), without having to use a global flag.

My colleague does this :

ON ERROR ErrHandler(various parameters) && This sets the value of glError

do something1

if glError then
glError = .F.
return
endif

do something2

if glError then
glError = .F.
return
endif

I hope there's a better way of doing it than this.

Thanks in advance

Pablo
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform