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