group syntax question
Phil Davis
davis.phil at comcast.net
Tue Nov 22 02:07:40 EST 2005
Hi Mark,
You could add a line of code like the following in the group script:
on mouseUp
set the uTargetLabel of me to the label of the target
end mouseUp
That would reduce the ugliness a little:
switch (the uTargetLabel of grp "gpFilter")
etc.
Just an idea...
Phil Davis
Mark Wieder wrote:
> All-
>
> Is there an easier way to get the label of the selected radio button
> in a group? I've got several occurrences where I've got something like
> the following ugly syntax. It seems like there should be something
> more intuitive, but I can't seem to come up with it.
>
> switch the label of button (the hilitedButton of group "gpFilter") of group "gpFilter"
> case "the label of radio button 1"
> break
> ...etc.
> end switch
>
More information about the use-livecode
mailing list