Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to keep global values ?
Message
From
24/04/2000 18:44:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Where to keep global values ?
Miscellaneous
Thread ID:
00362947
Message ID:
00362947
Views:
58
Ok I admit, I have sinned. I use global variables in the FPD app that I am converting to VFP.

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.

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?

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 (?).

Suggestions, please.

Alex
Next
Reply
Map
View

Click here to load this message in the networking platform