PDA

View Full Version : RadioButton.GetValue/SetValue missing?


SonG0han
01-30-2008, 03:17 AM
Hi. Just tried the Radio Button for the first time and there seems to be no RadioButton.GetValue and RadioButton.SetValue.

You should be able to get and set the value with the Get/SetProperties but it would be easier to have a Get/SetValue?

Darryl
01-30-2008, 10:00 AM
RadioButtons are a little different. What you're looking for is the "Page.GetRadioValue" and "Page.SetRadioValue".

SonG0han
01-30-2008, 12:27 PM
Oh, I missed that one. :o
Thank you for showing me where it is.

I used the following in the meantime and it seems to work, too.
(you could just set a var if radio1 is checked but I used this one to be able to change the value anytime and don't have to change the code again).

DEChecked = RadioButton.GetChecked("radLangDE");
ENChecked = RadioButton.GetChecked("radLangEN");

if DEChecked ~= false or ENChecked ~= false then
if DEChecked == true then
tblDEChecked = RadioButton.GetProperties("radLangDE");
LangID = tblDEChecked.Value;
end

if ENChecked == true then
tblENChecked = RadioButton.GetProperties("radLangEN");
LangID = tblENChecked.Value;
end