GetPvProfString

GetPvProfString

Postby don lowenstein » Wed Nov 07, 2007 5:27 pm

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.
Don Lowenstein
www.laapc.com
User avatar
don lowenstein
 
Posts: 197
Joined: Mon Oct 17, 2005 9:09 pm

Postby don lowenstein » Wed Nov 07, 2007 5:41 pm

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.
Don Lowenstein
www.laapc.com
User avatar
don lowenstein
 
Posts: 197
Joined: Mon Oct 17, 2005 9:09 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 55 guests