I explain U how I made
- Code: Select all Expand view RUN
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 xVar
where is the error ?
I check the value and it is .t.
on ini file
- Code: Select all Expand view RUN
- ChkSerie1=.T.
ChkSerie2=.T.