Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To iif or not to iif = .t.
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00513276
Message ID:
00514585
Views:
9
>Hi!
>
>Then, if subroutines used, this approach might be even more better.
>Take a look to the RETURN command help. As you see, you can return to any procedure from the procedures call stack missing the rest of all other procedures code that are called after the procedure where you returning to. For example:
>
>
>A.pRG
>....
>DO B
>    B.PRG
>    ....
>    DO C
>         C.PRG
>         ....
>         DO D
>              D - return to B here
>         ... - this code not running after return from D to B
>    .... the rest code of B
>
>
>I guess you can use that way to return to special program that call the entire process from any subroutines.
>
>PS: I understand that certainly the thread was about other things, however, I just tried to answer your particular question about returning from the any point of the long process. As you see, you can organize this without constant checking for some logical variable. Tough this violates the OOP and structured programming, so this should have limited use.
>

Vlad,

Thanks for the explanation. My original intent was to re-write code using structured programming...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform