Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Big 'O'
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00115108
Message ID:
00115416
Vues:
17
>>PMFJI, but I've been following this thread and wonder if you or any other contributers to the thread can answer this question for me. Aside from it being more OOP, what are the benefits/advantages of having an application object with properties and methods compared to a main.prg with variables and procedures?
>
>Well, there are several...
>
>1. I do not have to worry about SET PROC. The methods and objects I need are always there in one place.
>
>2. I do not have to manage many public variables. I have one, with predefined properties.
>
>3. I can create a generic application object that I would use for most projects and subclass it for particular ones. This is a *huge* benefit.
>
>I am sure that there are more, but these are the three that come to mind off the bat.

Thanks for the input. Based on this and advice from David F, I'm going to look at putting together the beginnings of my first application object asap.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform