Page 1 of 1

GetPvProfString

Posted: Wed Nov 07, 2007 5:27 pm
by don lowenstein
I'm using:
xHarbour Compiler build 0.99.71 (SimpLex)
FWH Version 7 - binaries dated 7.10 from October 2007.
Borland BCC 5.5

1. I'm calling GetPvProfString() function as follows:

MYFILE.INI:

[XYZ]
MyVar=

x := GetPvProfString( 'XYZ', 'MyVar', '1', MYFILE.INI )

In this instance, with x is set to empty, the default value seems to not be working.

If I set ini file value as follows:

MyVar=2 - function works fine.

2. I checked the documentation to see if I was callling the FWH version of the function and I noticed within the documentation the function name is mis-spelled --- "GetPvpProfString" which, I believe is a typo - extra "p" ??? The program would not link when referencing the documented function.

Posted: Wed Nov 07, 2007 5:41 pm
by don lowenstein
I see now - if entry is not found, the default value is used. However, if Entry is found and the entry is set to empty string - function returns an empty string.

Sorry to waste your time.