Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing multiple forms
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00244464
Message ID:
00244629
Views:
13
>>Mark,
>> I have three forms that I am having problems with releasing. They are not a part of the same formset either, just three individual forms. Did you ever find an answer to your question?
>>
>>Jeff T.
>
>
>DO FORM Form1 NAME FirstInstance LINKED
>DO FORM Form1 NAME SecondInstance LINKED
>
>RELEASE FirstInstance
>RELEASE SecondInstance
>
>All of my forms are instantiated from class libraries using CREATEOBJECT().
>I attach each subordinate form to an array property of the main form. In the QueryUnLoad() of the main form, I enumerate this array and close the child forms. Their QueryUnload() methods ensure that any validation requirements have been met before they are Released.
>
>HTH

Simply another approach....many apps have either a form mgr or a part of their app object that is a form mgr. You DO FORM NAME as suggested and put the object reference into an array. You can then manipulate all the forms on display via the array reference.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform