>Hi,
> I am calling a program (ie. prg file) from the vent handler of a command button on a form. In the prg file, I have a error handler "HandleError". When Iam in HandleError function, I want to return control to the next statement in the button click event instead of the next statement in .prg file.
>
>Is there any way of doing it? I looked at the syntax of "return". It says I can return to any procedure (in the call stack) or master. When I gave
> return to Form1.cmdBtn.Click
>
> I got syntax error.
>If you know, how to do this, please reply to me.
>
>Thanks
>Puri Malluru
PROCEDURE ERRHANDLER
DO CASE
CASE error() = 12345
DO whatever
RETURN && TO RETURN TO CALLING PROCEDURE AND EXECUTE THE NEXT LINE
CASE error() = 34343
DO whatever1
ENDCASE
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."