PDA

View Full Version : Get RadioButton Checked


Chen Lyan
03-24-2009, 11:21 AM
I have three RadioButton.
That Object are RadioButton1,RadioButton2 and Radiobutton3.
The three RadioButton have the some ground name is Choose.
My sousecode is

for i=1, 3 do
vRadioButton = Button.GetState("RadioButton"..i);
if vRadioButton then
-- RadioButton.SetChecked("RadioButton"..i, true); --
INIFile.SetValue(_TempFolder.."\\MySoftCD.ini", "RadioButton", "RadioButton"..i, "1");
else
INIFile.SetValue(_TempFolder.."\\MySoftCD.ini", "RadioButton", "RadioButton"..i, "0");
end
end

so how do I get the check to
vRadioButton = Button.GetState("RadioButton"..i);

Ulrich
03-24-2009, 03:24 PM
Hello,

this might work better:

vRadioButton = RadioButton.GetState("RadioButton"..i);


Ulrich