Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form sets, best way to work with them?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00276563
Message ID:
00276837
Vues:
23
>>> Your formset will always instanciate those 4 forms whether the user calls on them or not.
>
>Like all containers, formsets have AddObject() methods which means you can use the same delayed instantiation strategies that are useful for speeding up pageframes.
>
>I think many folks here are recommending against FormSets without understanding them. Certain things, like sharing a private datasession among forms, are impossible without them.
>
>I have a slick process here where processes having private datasessions all need to call a common report specification form. Using a FormSet I can AddObject the report specification form class at any time, and it's then a full participant in the calling process' private data session.
>
>Andre

I have such a form too, It is modal with the default datasession so it can share the datasession with the calling form. If I don't need it modal (or for the debugging purposes I make it non-modal), it automatically detects the calling form's datasession and switches to it.
Can't say for everybody, but IMHO, I found that disadvantages of using the form set oughtweight the advantage of sharing the datasession.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform