Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application object
Message
 
À
03/12/1998 13:57:30
Tim Hockin
Illinois State U - Residential Computing
Normal, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00163769
Message ID:
00163787
Vues:
33
It's not necessarily wrong to add these types of things to your application object, but if these methods don't really provide global services that are directly related to the application object you're probably making the interface of the application object unneccessarily complicated. Adding too many methods to your application object (you're not near that unquantified point yet), can actually have a negative impact on performance.

Do you have a command class in your framework? Typically a command class is not much more than a subclass of the VFP Custom baseclass with an Execute method on it. For some of the things you've described it sounds like it may be more appropriate to create command classes that deliver the specific functionality you need and then just instance them and call the execute method when necessary.
Mike Feltman

F1 Technologies
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform