Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert to dbf
Message
From
09/07/2012 03:09:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Convert to dbf
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01547833
Message ID:
01547833
Views:
111
hi all,
i try with this code below it work for 16384 records only, but the sheet have 39397 records,
any help
Local lcFile, lcTemp, lcDBF
lcFile = Getfile("xlsx")
lcTemp = Addbs(Getenv("TEMP"))+Sys(3)+".xls"
loExcel = Createobject("excel.application")
loExcel.Workbooks.Open(lcFile)
loExcel.ActiveWorkbook.SaveAs(lcTemp,39)  && Place it in the temp folder
loExcel.ActiveWindow.Close(.T.)
loExcel.Quit
Import From (m.lcTemp) Type Xls   && or XL5
lcDBF = Justfname(Dbf())
Close Databases All
Rename (m.lcDBF) To (Juststem(m.lcFile)+'.dbf')
Delete File (m.lcTemp)
thanks
Next
Reply
Map
View

Click here to load this message in the networking platform