relative position of a target within a group
J. Landman Gay
jacque at hyperactivesw.com
Fri Feb 19 18:22:25 EST 2010
Mark Swindell wrote:
> How does one get the relative position of a button within a group of buttons?
> I want to
> put the (relative to group myGroup) number of the target into vMyVar
> One can say
> select button 3 of group myGroup
> without problem.
> But how would one best do this using the target function?
A little cheat:
set the hilite of the target to true
get the hilitedbutton of me
set the hilite of the target to false
Put it into the group script. If your buttons are radio buttons (i.e.,
they don't change hilite) then all you need to do is get the hilitedbutton.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the Use-livecode