Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Caption in a COPY TO command
Message
De
13/12/2003 10:26:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00858813
Message ID:
00858899
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>Can you have the Captions output in a COPY TO filename TYPE CSV, so that you get on the 1st row the CAPTION names of the fields, instead of the smaller fieldnames??
>
>Thanks!
>
>Tommy

No without editing. However you might invent your CSV writer. ie :

lcHeaders = 'My Header 1,my Header 2, Customer ID,...'
copy to myOutPut.txt type delimited with ""
StrToFile(lcHeaders+chr(13)+chr(10)+FileToStr('myOutPut.txt'),'myOutPut.txt')

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform