Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Factory Objects - practical application
Message
De
14/12/2006 19:46:17
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
14/12/2006 17:50:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01177742
Message ID:
01177850
Vues:
37
>ROFL
>
>You can implement it however makes the most sense for you. I did it at the application level.

That's true. I'm going to provide it with the datasession parameter. If it starts at the app level, it can open its own table and leave it open application wide. If I pass the DSID, it will switch, if necessary.

>
>>As Factory is such a lightweight object, I think it wouldn't hurt to instantiate one per DS, make it a Thisform.oFactory. Also, I don't see why do we have to have one factory. We can have a whole industry if we want. Nowadays even pet grooming is an "industry", so why not this.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform