Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling errors generated from program (.pgm) files
Message
From
15/05/2003 15:25:58
 
 
To
15/05/2003 15:09:27
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00788949
Message ID:
00788962
Views:
30
I used to use the program() function which lets you work your way back up the calling stack.

HTH Jeffrey

>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform