Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I read .ini file entries??
Message
 
 
À
04/08/2000 09:41:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00400961
Message ID:
00401008
Vues:
38
>Ok, that part is working, but it's not finding my entry. I'm assuming that everything is case sensitive.
>
>The ini file looks like:
>
>[DATA]
>testdata=D:\temp\data
>
>Does the ini file have to be located in the system directory? I want it located in the same directory of my app.

You have to specify the full path of the INI file. Because this class acts as a wrapper to the WinAPI to parse the file, I don't where it attempts to llok for it. If it's in the same directory as your startup directory then you can use curdir():

oApp.GetINIEntry(@lcmyvalue ,"DATA","testdata",cudir()+"\test.ini")
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform