Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert to dbf
Message
De
09/07/2012 05:26:03
 
 
À
09/07/2012 03:34:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01547833
Message ID:
01547838
Vues:
58
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform