Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to delimited
Message
From
10/12/2000 23:23:56
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/12/2000 22:52:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00451470
Message ID:
00451478
Views:
28
>But the Accounting software still cannot accept because of ,,,,. So How can I make it like below :
>
>cusid,invNo,amt,date
>
>c001,123,200.00,01/01/2000
>
>c002,131,20.00,02/01/2000
>
>
> Thank in advance.

First idea: add an extra field which would contain a CR/LF combination, i.e.

select cusid,invNo,amt,date, chr(13)+chr(10) as crlf ;
from your_table into cursor temp
copy to whatever.csv type csv

Another one would be to like before, and then do some postprocessing in your csv file:

cs=filetostr('whatever.csv')
cs=strtran(cs, chr(13)+chr(10), chr(13)+chr(10)+chr(13)+chr(10))
=strtofile(cs, 'whatever.csv')

The second line should replace each cr/lf with two of them, thus creating empty lines.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform