Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting Field Names
Message
 
 
To
29/06/1998 17:10:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00112681
Message ID:
00112688
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform