Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using multiple containers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00098334
Message ID:
00101024
Vues:
36
> Actually, what I did was create my bizobj, then created a class based on ccontrols -> ccontainer and placed my controls in there. Then I dragged my bizobj onto this container form. The reason I did this was so (if I ever needed to) I could instantiate my business object without having to have a form open. If I need to use the business object w/controls I just drag my container onto the form.>

You were right when you said "If I ever need to instantiate my business object without having to have a form open." If you ever move your application to a true three-tier environment, you will need to move your business objects to the second tier *without any user interface controls!!!*.

Also, placing user interface controls within the business object container makes reusability difficult because if you need to drop a business object on a different form to access its functionality you end up dragging along unneeded user interface controls with it.

With the advent of Visual FoxPro 6, business objects created as ActiveX Automation Servers are finally becoming a viable option. When we release our VFP6 version of the Codebook for Mere Mortals framework, we will provide a clean, scaleable path to true three-tier architecture.

Regards,
Kevin McNeish
Oak Leaf Enterprises
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform