Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement