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:
00400971
Views:
19
Brian,
Although I haven't used this class, it looks like you giving the function any where to put the value. You have to pass in a variable by reference to store the value into. Take the following INI example:

[MySection]
MyValue1=75
MyValue2=Hello World

The syntax would be:
local lcmyvalue
oApp.GetINIEntry(@lcmyvalue ,"DATA","testdata","test.ini")

HTH.

>Thanks for any help with this...
>
>I'm trying to capture an .ini file entry to a property in my form and haven't had any luck. The help for the custom oldinireg class in _registry.vcx is pretty thin.
>
>Everything looks pretty straight forward:
>Syntax: GetINIEntry(cValue, cSection, cEntry, cINIFile)
>
>The help states that "cValue specifies the value to be applied to cEntry."
>
>But I can't understand what to send "cValue". I'm not trying to write a value just read one.
>
>I'm assuming that it will return a string so I'm just trying:
>ThisForm.cDatafile = oApp.GetINIEntry( ,"DATA","testdata","test.ini")
>
>Any help would be appreciated,
>thanks,
>
>- Brian
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