> SubStr(lcMemo,_MLINE)
Well, hell <s>... Learn something new everyday. Didn't know that _MLINE returns a character offset. Cool.
>That definitely sounds like you don't use the _MLINE variable with MLINE(). Actually these operation can be quite fast.
No I wasn't using _MLINE, but still MLINE() and ATLINE() both are very very slow on large strings. I just checked the code I updated to and then changed it to use _MLINE and the original hack still ran 2-3 times faster. A single ATLINE in the large file took longer than to manually parse the strings and reading backwards through 3000 characters!
+++ Rick ---