Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When to create an ini
Message
 
À
02/04/2003 13:26:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00773118
Message ID:
00773318
Vues:
12
>Currently I am actually changing the property depending on which mode I am in dev vs deploy. I would like to set this information independently of the class and read the information in, for this and several other properties.
>
>The places that occur to me to do this are in a:
>1.) ini file
>2.) system parameter dbf
>3.) .h file

Hi Carole,

As craig said, an .h file is not a good idea because it implies recompiling.

The ini or the dbf are the simplest approaches imo. Ini is extremely easy to edit (all you need is notepad), but you have to create code to handle it (look in the downloads area).

dbf is the one that requires the least coding, but you'll need to have vfp or some other app that can read and write dbf's in order to change it on the fly.

Another option that you haven't mentioned is using the registry, which has the advantage of being hierarchical, but like the ini, requires some extra code in your app.

I personally prefer the ini approach because it's the simpler to edit.

Have fun!

Alex
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform