>And the little known fact about the _mline system variable, which keeps the beginning of the next line (as a byte offset). So while
>
>
for i=1 to memlines(c)
> ?mline(c,i)
>endfor
>
>might work fine, this would be much better (or at least faster):
>
_mline=1
>for i=1 to memlines(c)
> ?mline(c, 1, _mline)
>endfor
>
>because in the latter case Fox knows exactly where to start and doesn't count lines until the ith. Try with a huge string and you'll notice the difference.
Another thing to remember is SET MEMOWIDTH TO (default 50). It affects memlines(), mline(), e.t.c. but not ALINES().
--sb--