Information générale
Catégorie:
Codage, syntaxe et commandes
<<
Hi Paul in your error routine you can issue a return to master or return to «procname».
>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.
>>
Hi Alex,
What i'm trying to get is the ability to stop the entire process. Even if a return to MASTER or to a parent procedure I still carry on processing that procedure and have to trap whether something has gone wrong. In case of an error I want out..stop..finito.
What I really want to do is what I do in VB i.e.
on error goto errlabel
do something
errlabel:
exit sub
Actually what I really really want is a try, catch, finally error handler like delphi or .net, but I'm gonna have to wait for that methinks.
Cheers, Pablo
Précédent
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