repeat with each

larry at significantplanet.org larry at significantplanet.org
Mon Sep 22 09:04:00 EDT 2014


Hello,

I have never been able to understand how to use the each form in a repeat statement.

Can anyone explain why this code does not work?  It is almost verbatim from the example in the LC dictionary.

on mouseUp

repeat for each word thisWord in field justOne

put "," after thisWord

end repeat

sort items of field justOne

end mouseUp



It does not insert the commas.  Supposedly the each form is a lot faster than using

"put x + 1 into x"
"put "," after word x of field justOne

Thanks,
Larry



More information about the use-livecode mailing list