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
Miscellaneous
Thread ID:
00098164
Message ID:
00098265
Views:
26
>Question: what is the "highest calling program:???

Jerry,

Master the the first program in the calling stack. If your system starts with a strup prg that issues the read events, then return to master will return to that program and land on the read events line.

IMHO, RETURN TO has little value in OO systems, since there is not so clear of a calling stack as there is of a messaging system. In the procedural style of programming it was not uncommon to have a maij routine that would be called and that routine would call various sub routines (which in trun may call their own subs). In this structure it could be usefull to return to some previous point in the calling stack other than the immediate previous layer.

In OO systems there is less of that kind of structure. Yes there is a start up program that launches an application maanger object whcih in turn launches forms. But there is also teh command button click event that calls the form method that saves the data by calling the validation method and deciding on return from validation whether to continue with the data saving or not and returns the appropriate value to the calling object.

I see a lot less of a use for teh RETURN TO syntax in OO approach. Although I also must say that I never used it in the procedural days either. I always either wanted to return to the previous level or QUIT and shut down the system.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform