Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling errors generated from program (.pgm) files
Message
 
À
15/05/2003 15:09:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00788949
Message ID:
00788957
Vues:
24
You can use
RETURN [eExpression | TO MASTER | TO ProcedureName]
in the error log routine.


>As part of my FoxPro project, I have implemented a custom error log routine. This routine is executed by an "ON ERROR DO error_log.pgm" call. I would like to return control not back to the routine that generated the error, but instead return control back to the "parent" routine. According to the FoxPro on-line help, once an ON ERROR routine completes, it will return control to the statement following the one that generated the error (or optionally to re-try the statement that generated the error). This is not what I would like to happen (if possible).
>
>Maybe an example will help explain what I am trying to do. For example, routine A calls routine B, and B generates an error, which transfers control to the error log routine. When the error log routine is done, I would like to return control to routine A (an continue processing within A), even though it was routine B that kicked off the error routine.
>
>I am using Visual FoxPro 7.0 SP1....
>
>Thank you for your help.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform