Worked around it for now like so ...

        *** to give me the headers without any lines
        COPY TO customerheaders.csv FOR 1=0 TYPE CSV 
        
        *** to give me the lines pipe limited with no quotes or commas
        COPY TO customerlines.csv TYPE delimited WITH "" WITH CHARACTER "|" 
        
        ***to merge the two files together and convert the commas in the 
headers to pipes
        
STRTOFILE(STRTRAN(FILETOSTR("customerheaders.csv"),",","|")+FILETOSTR("customerlines.csv"),"customer.csv")

        Seems to work ok.

-----Original Message-----
From: ProfoxTech <[email protected]> On Behalf Of Kurt at VR-FX
Sent: Friday, 08 February 2019 02:35
To: [email protected]
Subject: Re: Pipe Delimited

AFAIK - I don't think so. I remembered needing to do the same thing a number of 
years ago - and I think I had to kind of add the headers by hand. If I'm not 
mistaken...

And - by hand - I mean doing low-level file handling - or some such.

-K-

On 2/7/2019 6:13 PM, Chris Davis wrote:
> Is it possible to export a cursor/table to Pipe Delimited with Headers 
> without rolling my own?
>
> Thanks
>
> Chris.
>
>
>
> --- StripMime Report -- processed MIME parts --- multipart/alternative
>    text/plain (text body -- kept)
>    text/html
> ---
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cwlp265mb1668427d999f9e61b9f5290b8f...@cwlp265mb1668.gbrp265.prod.outlook.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to