Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy to delimited
Message
De
10/12/2000 23:23:56
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
10/12/2000 22:52:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00451470
Message ID:
00451478
Vues:
29
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform