Looping over all buttons

Mark Smith Mark_Smith at cpe.umanitoba.ca
Thu Feb 23 13:31:55 EST 2012


Ken Ray wrote
> 
> 
> repeat with x = 1 to 12
>   put "Hello" into field ("MyField" & x)
> end repeat
> 
> 
What if you want to put fld fieldname into myvar as in the original that Bob
suggested:

"put fld myfield into tvar" & x

Myfield holds the name of a field that is being copied to a temp variable
that is incrementing inside a loop. I tried various things but could'nt get
it to work.

-- Mark


--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Looping-over-all-buttons-tp4410980p4414762.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list