repeat loop
Posted: Mon Jul 13, 2009 6:05 am
The code below works but I actually want to substitute the m+2 and the m+3 with 2m+1 and 2m+2 and it won't accept it. I've tried putting brackets around it but doesn't seem to help. I have 7 fields that have five lines each that I want to copy data into.
on mouseUp
set itemdelimiter to tab
repeat with n = 1 to tlineNo
repeat with m = 1 to 5
put item m+2 of line n of fld "Blends" && item m+3 of line n of fld "Blends" into line m of fld ("layer" & n)
end repeat
end repeat
end mouseUp
on mouseUp
set itemdelimiter to tab
repeat with n = 1 to tlineNo
repeat with m = 1 to 5
put item m+2 of line n of fld "Blends" && item m+3 of line n of fld "Blends" into line m of fld ("layer" & n)
end repeat
end repeat
end mouseUp