Jamie,
There really isn't a need to use RETURN TO anywhere within a VFP app. Those are only in for support of FP2.x legacy code.
If the form is modal after you call the Release() method you will be returned to the line of code after the DO FORM. If the form is modeless then the form just goes away.
>I am having difficulty at times having a form release and return to the calling routine (DO FORM from a menu). Code in the load event is something like this:
>
> if control.ct_lastclosed +20 > date()
> messagebox('You must wait...',64,'Attention')
> thisform.release()
> return to master
> endif
>
>I have tried swapping the thisform.release and return to master, removing thisform.release, etc. Am I missing a SET command perhaps? Any help greatly appreciated..