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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only