Well, you can speed that up by always operating on the first line of tText, as in:

newString = EMPTY
temp = tText
repeat with i = 1 to tLines
  aLine = temp.line[1]
  --modify aLine
  put aLine after newString
  delete line 1 of temp
end repeat

I'm pretty sure that would be slower, since each time you delete from the beginning of a string, everything after it is moved to the fill the data structure from the front.

Regards,

Daniel
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to