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:09:27
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Handling errors generated from program (.pgm) files
Miscellaneous
Thread ID:
00788949
Message ID:
00788949
Views:
120
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.
Next
Reply
Map
View

Click here to load this message in the networking platform