FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GetPvProfString
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
GetPvProfString
Posted: Wed Nov 07, 2007 05: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.

  1. 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
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
GetPvProfString
Posted: Wed Nov 07, 2007 05: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

Continue the discussion