>>Peter,
>>
>>Why not always add crlf to the last element ?
>>instead of
>>
lcC = "a" + ccCRLF + "b" + ccCRLF + "c" + ccCRLF + lcSomeVar
>>do
>>
lcC = "a" + ccCRLF + "b" + ccCRLF + "c" + ccCRLF + lcSomeVar + ccCRLF
>>then alines() will always return 4
>
>Good idea! It should work in vfp7 (and vfp8) at least. I've asked MS to repair the bug (see my reply to Sergey). I guess many developers use your technique. This makes it allmost or certainly a necessity for the VFPteam to implement the repair with caution.
>
>Thanks!
Peter,
Also if you never write the ending crlf use
alines(Arrayname, expr + crlf)
As an aside, I have written my own routine to deal with those cases where there can be an empty trailing field
Gregory