Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to keep global values ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00362947
Message ID:
00363196
Vues:
31
>Now the question, where is the most logical place to keep those values in VFP? I assume as properties of some object, but which objects?
>
>1) There are values related to the calendar e.g. Days of week or names of months in spanish. You may consider these to be "permanent" values.

I would generate them as a method in the oApp.class myself. You may decide to store them as a property there, it is up to you.


>2) Values established by law for all clients. I keep many of these in a table, but I find it better to load them up to memory and work from there since table isn't always in right record. Perhaps an object which represents that table?

Once again you may store them in oApp.

>3) Values that have to do with this customer, such as what options they paid for. Perhaps oLicensee (?)

How about in oCustBiz a customer specific biz object?
>
>4) Values that have to do with the company (user may have several). oCompany

Same place oCustBiz.

__Stephen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform