>I'm studying the message thread you sent me - thanks
>
>By the way
>
>lcFileStr = filetostr('&wwx')
>lcFileStr = chrtran(m.lcFileStr, chr(13) + chr(10),'') && to remove all of them at once - the file will be one long line now
>strtofile(m.lcFileStr,'myFile1.txt')
>
>Is fine as my csv file only ever contains a single record - but there's the problem - how do I get rid of the column headers - I have no control over the way the csv file is written?
>
>Colin
>
You may first remove the first line with Headers, e.g.
lcFileStr = substring(m.lcFileStr, at(CRLF, m.lcFileStr) + 2) && and then apply chrtran.
Also, you don't need to use macro in your code above, I think.
If it's not broken, fix it until it is.
My Blog