Notifications
Clear all
[Closed] RadioButtons label vs value
Jul 21, 2009 6:00 pm
Helo guys, i’m stuck on something with the radioButtons.
I try to use radiobuttons with 2 value. ie i have a Labels:#(“4 section”,“8 sections”) now i want to say when the radio “4 Sections” is selected, it return 0 as a value while “8 Sections” return 1 as a value.
How can i do that? thanks for your kind help.
2 Replies
Jul 21, 2009 6:00 pm
Rad_But.state would be 1 if the first element is active, 2 if the second one is active and 0 if none is selected.
If you really want it to be 0 or 1, all you’ll have to do is save the state into a variable and then subtract 1.
Jul 21, 2009 6:00 pm
damn i missed that point…
You’re right. i think that’s what i’ll have to do.
thanks