Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling errors generated from program (.pgm) files
Message
De
15/05/2003 15:09:27
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Handling errors generated from program (.pgm) files
Divers
Thread ID:
00788949
Message ID:
00788949
Vues:
127
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform