Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exporting Field Names
Message
 
 
À
29/06/1998 17:10:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00112681
Message ID:
00112688
Vues:
25
Tres,

VFP6 supports CSV output format directly. Till then:
use Thedbf
lcStr = ""
n = afields( laFields )
for i = 1 to n
   lcStr = lcStr + afields[i,1] + iif( i < n, ",", chr(13)+chr(10) )
endfor
copy to Thedbf.csv delimited
create cursor xtemp ( mText m )
append blank
replace memo mText with lcStr
append memo mText from Thedbf.csv
copy memo mText to Thedbf.csv
>I can't seem to find this answer on my own, so I turn to the pros for help...
>
>How do I export field names when I issue COPY TO filename TYPE DELIM?
>
>The data comes across beautifully but without the field names...
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform