> Be careful with repeat for each. You cannot change the content of the object
> or block you are repeating through. "Unexpected results" is an
> understatement. You need to work with a copy, making sure you don't add or
> remove the each element (each word, each line etc.) else you get out of sync.
>
> Bob
Using 'repeat for each' with a counter is still faster than 'repeat with'
put 1 into count
repeat for each line thisLine in fld 1
if line count of fld 1 = whatever then doSomething
add 1 to count
end repeat
be well
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode