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

erik hansen erikhans08 at yahoo.com
Mon Jul 21 16:40:01 EDT 2003


Stephen King <st.king42 at ntlworld.com> wrote:Hi,

Thanks for the info - it sort of backed up my own
thoughts so thats really
useful in telling me I'm on the right track.

I found the specific problem though its a little
more subtle, it seems that
you can't label a button with a number and do
this sort of thing.
Unfortunately this is exactly what I did!

===

btn label = "1"
btn name = "b1"
put 1 into n
refer to button ("b" & n)

this label feature saves you the bother of...
never mind.




=====
erik at erikhansen.org    http://www.erikhansen.org

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



More information about the use-livecode mailing list