Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to keep global values ?
Message
De
24/04/2000 20:05:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
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:
00362965
Vues:
36
>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



A custom class generally named oApp is a nice place. oApp could have arrays for some vars, obj refs, table open/close routines, license checker etc. Array would be especially good fo enumerating Spanish day, month etc names.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform