SOLVED - How to get the value from a radio button
Posted: Thu Jul 28, 2011 4:11 pm
I've had it with the combo box for now, so for the gender, I am forced to use something else, like the radio buttons. I have two radio buttons, one for Male and one for Female and then grouped them. I set their RadioBehavior to true so only one or the other can be chosen.
The individual controls are called chcMale and chcFemale.
How do I extract the value from the one chosen? I tried true, false 0's and 1's - none of that worked.
So,
if chcMale = "1" then
put "Male" into Gender
end if
if chcFemale = "1" then
put "Female" into Gender
end if
did not work. Nor did true or false.
So, how do I extract the answer chosen?
Mike
The individual controls are called chcMale and chcFemale.
How do I extract the value from the one chosen? I tried true, false 0's and 1's - none of that worked.
So,
if chcMale = "1" then
put "Male" into Gender
end if
if chcFemale = "1" then
put "Female" into Gender
end if
did not work. Nor did true or false.
So, how do I extract the answer chosen?
Mike