Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close all forms?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00284684
Message ID:
00285736
Views:
20
Hi Ed,

>The intelligent way of closing forms is to have additional column in form manager forms collection. This column will keep reference to 'parent' form, i.e. will be filled for 'child' form only. Therefore, when closing (all forms or some particular form) it will check first for 'childs' close them and only after this will close itself.

Sure, if you were to allow modeless forms to directly spawn other modeless forms. Personally, I've never run into a situation where this was desirable. If I needed such, I'd simply pass the necessary parameters to the application's forms launcher adn let it do the work. If I wanted to automatically have the "parent" close the child, inventing a mechanism to do so really isn't that complicated. Given the lack of need on my part (perhaps due to a sheltered exisstence< g >), I see no need to incur the additional overhead for something that isn't going to be used.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform