Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically adding a form to a formset
Message
De
03/03/2003 19:41:57
 
 
À
03/03/2003 18:45:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00760622
Message ID:
00760658
Vues:
14
>Yes it is in VFP. Is it passe to use a form set? Please let me know if it's considered gauche. I seldom develop user interfaces, I manage a data warehouse primarily.

The use of formset is only in VFP for backward compatility. There shouldn't be any use of those, especially on new projects. If you have to support old projects, then, it may be useful to try to workaround that. But, as soon as time come, you might consider getting rid of those. :)

>My reasoning for using a formset was to hang all the shared properties for a set of forms and to hang a collection tree that the forms define. For instance the name of the temporary directory some scrap files are getting created.

Welcome to OOP! :) Seriously, OOP will serve you well in this case. Just define a form class for the required form that need specific needs. So, you have a base form class for all the framework. Then, you subclass it for specific form. Then, you build the specific forms on top of it. There you go.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform