Question

I want to enter the data in FoxPro but save the data in .xls format.

Was it helpful?

Solution

You can use EXPORT TO *FILENAME* TYPE XLS

OTHER TIPS

COPY TO is more flexible: FIELDS LIKE or FIELDS EXCEPT.

But do use XL5, for newer Excel 5 format. XLS creates XLS and users will be asked to change formats when they save with new Excel.

Additionally, you can use COPY TO and specify the specific fields and field sequence, something like

COPY TO SomeFileName fields MyFld1, MyFld2, MyFld3 type XLS

for exmple ossep12.dbf file

COPY TO "c:\kbk.xls" NEXT 50000 FIELDS Ossep12.uniqueid,Ossep12.crmacct,Ossep12.billno,Ossep12.ll,Ossep12.bb,Ossep12.sc,Ossep12.st,Ossep12.os,Ossep12.bldt,Ossep12.classcode,Ossep12.acsubtype,Ossep12.name,Ossep12.add1,Ossep12.add2,Ossep12.add3,Ossep12.city,Ossep12.pin,Ossep12.inactdt,Ossep12.status,Ossep12.phone,Ossep12.exgcode,Ossep12.bldate,Ossep12.inactivedt TYPE XL5
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top