Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Application Object example?
Message
De
24/11/1999 08:22:51
 
 
À
24/11/1999 01:59:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00294399
Message ID:
00294914
Vues:
24
>Hiya Doug,
>
>Generally speaking, in my apps I use oApp to hold properties that are global in scope (like the old PUBLIC memvars) and methods that are also global (like generating primary keys). I instance other global "application" objects by function. Anything calling external COM servers gets it's own management object.
>
>But, my friend, sometimes I just get lazy and throw everything into poor, old oApp. On small to medium applications, there is no compelling reason not to. Now the OOP snobs will have my butt with that one :-)
>
>
>

They might, but in Effective Techniques, Jim & Steve say that it is ok to have a App object that holds everything. BTW, that's the way I've been doing it. I call mine ThisApp to make it consistant with This and ThisForm.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform