Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Caption in a COPY TO command
Message
From
13/12/2003 10:26:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00858813
Message ID:
00858899
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform