Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I read .ini file entries??
Message
From
04/08/2000 09:13:02
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00400961
Message ID:
00400966
Views:
23
>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.
>

On a Get, you need to pass a character variable by reference to receive the data. Create a variable cValue, pre-init it to an empty string ("") and pass it by reference (prefix with @) eg:

=GetINIEntry(@cValue, cSection, cEntry, cINIFile)


>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform