Basic question - how to use a variable to refer to an object (button)

Shao Sean shaosean at unitz.ca
Sun Jul 20 12:40:01 EDT 2003


the following code worked fine for me:

  on mouseUp
    local tButtonName
    put "bob" into tButtonName
    set the label of button tButtonName to "hello"
  end mouseUp

i had 2 buttons, one named "bob" and the other was just a
generic "new button".. clicking the generic button would
change the label of button "bob"..

is there something else that you were looking to do?


----- Original Message Follows -----
> How can I refer to a button by name using a variable?



More information about the use-livecode mailing list