>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