Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to keep global values ?
Message
De
24/04/2000 21:34:18
 
 
À
24/04/2000 18:44:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00362947
Message ID:
00362985
Vues:
25
>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.

#Define these as constants.

>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?

This would be the middle tier, Business Rules, create an object wiht methods that will verify most of the data you want to submit.

>3) Values that have to do with this customer, such as what options they paid for. Perhaps oLicensee (?)
>4) Values that have to do with the company (user may have several). oCompany (?).

I normally leave these as table records. Or, instead of saving the fields as properties, create an object with a method that will return a value from the correct record and field.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform