Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I read .ini file entries??
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00400961
Message ID:
00401008
Views:
36
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform