Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicate Field names after EXCEL SaveAs DBF
Message
From
21/05/2003 16:08:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Duplicate Field names after EXCEL SaveAs DBF
Miscellaneous
Thread ID:
00791309
Message ID:
00791309
Views:
36
Hello all, here is my problem. I am saving an excel spreadsheet as a DBF using OLE Automation, here is my code:

oExcel.activeworkbook.saveas(lcDBFFile,xlDBF3)
oExcel.activeworkbook.Saved = .t.
oExcel.quit()

The problem is, the Excel spreadsheet has two columns that are named the same thing. When it saves it as a DBF, it is keeping the duplicate columns, which creates duplicate field names. WTF? Isn't this strictly illegal? How can I prevent this type of behavior?
TIA
Amanda Morton
System Analyst
Harrisburg Project
Next
Reply
Map
View

Click here to load this message in the networking platform