Using 'for each' to modify a container

Malte Brill revolution at derbrill.de
Wed Oct 11 08:57:03 EDT 2006


hi Mark,

try this:

repeat for each line thisLine in vContainer
   put thisLine into tLine
   put doSomeFunction(item -2 of thisLine) into item -2 of tLine
   put tLine &cr after tContainer
end repeat
delete char -1 of tContainer
put tContainer into vContainer

Hope that helps,

malte



More information about the Use-livecode mailing list