Thanks for the reply Stefan
. Initially I was surprised because I thought if TIni class was able to correctly read/set variable type such as date and logical then surely a numeric type would've been handled correctly also.
My initial workaround was to modify my readIni() to the following (saveIni() seems to be working as expected):
Code: Select all
function readIni()
local oIni, aBF := array(2)
INI oIni FILE "c:\app\data\app.ini"
GET aBF[COL_K] SECTION "Balance" ENTRY "BF_COL_K" OF oIni DEFAULT ""
GET aBF[COL_L] SECTION "Balance" ENTRY "BF_COL_L" OF oIni DEFAULT ""
ENDINI
aeval(aBF,{|x,ele| aBF[ele] := val(x)}
return nil
But later, I changed the TIni:Get() method the following way and revert back my changes to readIni().
Code: Select all
.
.
if Empty( ::cIniFile )
uVar = GetProfString( cSection, cEntry, cValToChar( uDefault ) )
if cType == "N"
uVar := val(uVar)
endif
else
uVar = GetPvProfString( cSection, cEntry, cValToChar( uDefault ),;
::cIniFile )
if cType == "N"
uVar := val(uVar)
endif
endif
.
.
Seems to be working fine so far