radio buttons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm
radio buttons
I have 3 radio buttons in a group. Each has a name. I want to put the name of which ever one is highlighted into a field. How do I do that. I can't find any scripting reference to radio buttons.
Hi Glenn,
I believe it is something like this, in the script of a group containing the radio buttons:
If it doesn't work, look up hilitedButton in the docs.
Best,
Mark
I believe it is something like this, in the script of a group containing the radio buttons:
Code: Select all
on mouseUp
put the name of the hilitedButton into fld "Your Field"
end mouseUp
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Or just use (in the group script):

Best
Klaus
Code: Select all
on mouseUp
put the hilitedButtonName of me into fld "Your Field"
end mouseUp

Best
Klaus