Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Management Problem Again
Message
De
30/09/1999 12:02:37
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00270872
Message ID:
00271131
Vues:
22
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform