Scripting what should be a simple loop...
Alex Tweedly
alex at tweedly.net
Fri Jul 9 19:50:31 EDT 2010
On 10/07/2010 00:43, Alex Tweedly wrote:
> put (fld "field" & i) into temp
> do "put temp into quote & "tVar" & quote & i
Sorry - it doesn't need to be that complicated.
you can just do
put (fld "field" & i) into temp
do "put temp into tVar" & i
(And just in case there are more silly typos - here's the actual running
code I used ... :-)
> on mouseUp
> repeat with i = 1 to 2
> put (the loc of button "Button" & i) into temp
> do "put temp into tVar" & i
> put tVar1 && tVar2 & "!!" after msg
> end repeat
> end mouseUp
-- Alex.
More information about the use-livecode
mailing list