Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to keep global values ?
Message
From
24/04/2000 21:34:18
 
 
To
24/04/2000 18:44:32
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00362947
Message ID:
00362985
Views:
26
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform