Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Management Problem Again
Message
From
30/09/1999 12:02:37
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00270872
Message ID:
00271131
Views:
21
>>The quick and dirty fix is to declare the form variables PUBLIC
>>PUBLIC CustOpen, CustClose
>>although this isn't the best solution.
>>
>>You might allocate the sub-forms to properties of your main screen ( I assume that this is possible).
>
>Is this as simple as just adding two properties in the form designer or is there more to it?
>
>
>>do form custopen name loMainForm.CustOpen noshow LINKED
>>
>>Another possibility would be to channel all form create/destroy/show through a Form Manager object that will manage form references internally.
>
>That sounds intriguing, how to make that work?

The form manager concept is popular in any of the available VFP frameworks. Essentially the form manager class, which is usually a child of the application class, is called whenever you want to create/destroy or manage (tile/cascade etc.) the forms that make up your application. Because all the form references are kept within the form manager (usually in an array that is a property of the object), these references never go out of scope.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform