Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return to master ???
Message
From
22/01/2001 04:26:05
Liam O'Hagan
O'Hagan Programming Ltd
Ireland
 
 
To
22/01/2001 03:33:40
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00466490
Message ID:
00466496
Views:
16
Hi Geoffrey,

I hadn't come across this feature before and you're right about it not being well documented. However, what it appears to do is return to the topmost program in the call stack. Eg, three small PRG's :

Test1.PRG
? "In test1"
Do Test2
? "Still in test1"

Test2.PRG
? "In test2"
Do Test3
? "Still in test2"

Test3.PRG
? "In test3"
Return to Master
? "Still in test3"

Issuing a DO Test1 will give you 4 lines of text
In test1
In test2
In test3
Still in test1

Any clearer?

HTH

Liam






>This is not a well documented feature, but I am trying to track what happens when this statement is used. Just where does it return? How can you tell what line of code will be executed next? It would seem desirable to have a statement like 'set master', and know that is where you end up if you make the call.
>It certainly seems to change its mind about where to go if you set step on, and I can't think of any way to find where it is going in a piece of code I am looking at.
>
>Anyone know?
Liam O'Hagan
MCP VFP Desktop Apps
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform