Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert to dbf
Message
From
09/07/2012 05:26:03
 
 
To
09/07/2012 03:34:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01547833
Message ID:
01547838
Views:
57
thank you for reply and explain,
>With more than 16384 records, you must either use Excel automation, or save to another file format in Excel, and import from that.
>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform