I save the value of a checkbox in an ini file and then I try to update the checkbox with setcheck but it doesn't update
I explain U how I made
where is the error ?
I check the value and it is .t.
on ini file
I explain U how I made
Function test()
local oCheckSerie:= array(5)
local lcheckSerie:= array(5)
local aChechSeries:= {"ChkSerie1","ChkSerie2","ChkSerie3"}
lcheckSerie[1] := GetIni( cIniFile, cSection, aChechSeries[1], )
lcheckSerie[2] := GetIni( cIniFile, cSection, aChechSeries[2], )
DEFINE DIALOG.....
@ 20,10 CHECKBOX oCheckSerie[1] VAR lcheckSerie[1] PROMPT "Serie 1" of oDlgEvidenzia SIZE 30,10 PIXEL UPDATE
ACTIVATE DIALOG oDlgEvidenzia CENTER ;
ON INIT ( SetCheckBoxes(oCheckSerie,lcheckSerie) )
return nil
static Function SetCheckBoxes(oCheckSerie,lcheckSerie)
local n
For n= 1 to 2
oCheckSerie[n]:SetCheck( lcheckSerie[n] )
oCheckSerie[n]:refresh()
next
return nil
function GetIni( cIni, cSection, cEntry, xDefault )
local oIni
local xVar := xDefault
INI oIni FILE cIni
get xVar ;
SECTION cSection ;
ENTRY cEntry ;
default xDefault ;
OF oIni
ENDINI
return xVarwhere is the error ?
I check the value and it is .t.
on ini file
ChkSerie1=.T.
ChkSerie2=.T.Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
