Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application object
Message
 
To
03/12/1998 13:57:30
Tim Hockin
Illinois State U - Residential Computing
Normal, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00163769
Message ID:
00163787
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform