Dumb question I am sure but after searching for awhile I still haven't found the answer....
How do I get the selected value of an option button?
I have code in so when the button is changed by the user I get what they selected but I can't find how to simply read the selected value. I need this at startup.
Get returns all the possible choices in the option button, not the one selected by the user.
Thanks,
Shawn
dumb question... get value of option button
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: dumb question... get value of option button
Hi Shawn,
look at menuHistory in the dictionary,
it gives you an integer of the selected menuoption, with the text of button "myOptionButton" you get a list of the available options.
regards
Bernd
look at menuHistory in the dictionary,
it gives you an integer of the selected menuoption, with the text of button "myOptionButton" you get a list of the available options.
Code: Select all
on mouseUp
put the menuhistory of btn 1 into tHist
put the text of btn 1 into tText
put line tHist of tText
end mouseUp
Bernd
Re: dumb question... get value of option button
Hi Bernd,
Thank you very much. That took care of it.
Shawn
Thank you very much. That took care of it.
Shawn