Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comma delimited file.
Message
De
04/09/1998 08:59:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00132541
Message ID:
00133205
Vues:
17
>Does anyone know how to export a FoxPro table to a comma delimited text file? In other words, I want every field value delimited by a comma with no quotes around character values. TIA

While you can

Appe from commas.txt delim

For copying into such a file you'd have to do a thing like this:

set print to commas.txt
set print on
lnFieldCount=afields(aStru)
scan
lc_comma=""
for i=1 to lnFieldCount
?? eval(aStru[i,1])
lc_comma=","
endfor
?
ends
set print off
set print to

You may want to check for type of the field and trim the strings, check if the strings themselves contain commas...

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