Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RETURN TO MASTER etc...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
RETURN TO MASTER etc...
Miscellaneous
Thread ID:
00098164
Message ID:
00098164
Views:
65
Below is the syntax for the RETURN TO command.

In Les Pinter's book he uses a constuction similar to
RETURN  TO &varname
where varname contains 'SYSMAIN' in one instance and 'MASTER' in another. His main prg is sysmain.prg. But, in an error trapping code he returns to MASTER. While running in DEBUG it returns to the click event that has a deliberate bug, for demo purposes, but when the exe is run the program appears to do a normal shutdown without returning to the click event.

Question: what is the "highest calling program:???


***************************************************************
RETURN [eExpression | TO MASTER | TO ProcedureName]

Arguments

eExpression Specifies an expression returned to the calling program. If you omit RETURN or the return expression, true (.T.) is automatically returned to the calling program.

TO MASTER Returns control to the highest-level calling program.

TO ProcedureName Specifies the procedure to which control is returned.
Nebraska Dept of Revenue
Next
Reply
Map
View

Click here to load this message in the networking platform