Refer to button in group

Klaus Major klaus at major-k.de
Wed Jan 18 14:02:24 EST 2006


Hi Liam,

> I want to check the state of a button from outside the group
> How do I refer to a button in the group
>
> the (group id 1053 ) is
>
> on mouseUp
if the HILITE of button "cash" of grp id 1053  = true then
>  put fld "total" into fld "cashTotal"
>  end if
> end mouseUP

But you only need the grp identifier if there are more than one buttons
named "cash" on this card.

Hint to save some typing:
If you omit a boolean value (true or false) then the engine will  
presume you mean -> true

...
if the HILITE of button "cash" of grp id 1053 then
...

Looks like the engine is an optimist ;-)

> Thanks
> eeeeee

oooo :-)

> Liam Lambert
> liamlambert at mac.com
> IRELAND

Best

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list