Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program to close all forms
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00359746
Message ID:
00359849
Views:
15
>Who needs non-closeable forms? :)

Frameworks might need non-closable forms, i.e. form-based objects that aren't visible and shouldn't be released until shut-down time.

One example is Stonefield Database Toolkit, which I use in my own framework. In version 5.1 of SDT the base class for the DBCXMGR object is a form. Typically this object is instantiated when the app first starts and it stays alive (although never visible) until the app terminates. It's part of the _screen.forms collection so you have to take care, when looping through that collection and releasing forms, not to release DBCXMGR unless you're ready to shut down the app.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Reply
Map
View

Click here to load this message in the networking platform