Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 forms in VFP window at same time?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00415082
Message ID:
00415214
Vues:
21
>>>Why Not? It is easier to mange two forms one set of source code for two forms to talk to one another.
>>
>>What do you mean?
>>
>
>I have a couple of forms that call certain routines that would be useful for both forms. Such a show_labels routine which display information on both screen simultaneously. I understand that i can call the routine by using the form name of what is was instanciated as. Although this would seems easier in the formset to just call the routine THIS.PARENT.PARENT.ROUTINE.
>

If both forms need common functionality, then they can be subclasses of the same form class, or both use a common object that houses that functionality. Building the forms in a formset tie the forms to each other and reduce flexibility. The only argument for using them that has any merit is the possiblity of a shared dataenvironment, but even that has better alternatives.

>>I don't guess what my forms call each other: if my forms have a speaking relationship, they do it through a forms manager or through a direct object reference that was assigned when on of the forms was instanciated.
>
>
>Would a formset be the same as a form manager?

No. More like a form container.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform