Using FoxPro 9.0
Trying to create a CSV file using the COPY TO command and would like to know if there is an automated way of removing the field names from the first record?
are you sure there is a regional difference in delimiters of CVS files? I think there are only regional differences in decimal point, seperator of large numbers (every three digits) and the mark that separates the parts day, month and year of a date.
Even if there is also a regional CVS separator there should be some API call to be able to get that information from the OS and use it as delimiter character with the COPY TO command you provided.
I just exported a worksheet from within Excel to either OS/2 or MSDOS CVS and Mac CVS format and Excel separated with a semicolon. So you may be right, but nevertheess Excel can also import these files if I modify the semicolons to commas. Also the icon of a link to a CVS file shows "a," on a sheet, which is a hint, that a comma is always accepted as seperator. The CVS format wouldn't really make sense, if there were so many different implementations of it. It surely is difficult enough, that there can be a first line containing field names or not and lines can be separated by CHR(13) alone or CHR(13)+CHR(10).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.