Information générale
Catégorie:
Codage, syntaxe et commandes
Ok, CSV option can give you a header, and delimeter option can give you delimeter that you need. Unfortunately you cannot combine them together in one /copy to.../ statement (at least at this moment I cannot remember howtodoit)
There is a number of solutions however. For instance,
copy to filename.csv delimet with character....
=afields(afld)
lcheader=""
for ia=1 to alen(afld,1)
lcheader= lcheader+iif(ia=1,'','|')+afld[ia,1]
endfor
=strtofile(lcheader+chr(13)+chr(10)+;
filetostr(filename.csv),filename.csv)
>now the , is not there but it put me " nad i dont want this
>
>"ex1"|"ex2"|
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement