当前位置: 代码迷 >> VFP >> 新手help:excel to vfp 的有关问题
  详细解决方案

新手help:excel to vfp 的有关问题

热度:2959   发布时间:2013-02-26 00:00:00.0
新手help:excel to vfp 的问题
如下       a.xls(A1)---> b.dbf(cusid)

          a.xls

              A1
            潮州
            南京
            天母

          b.dbf
   
栏位     cusid

            潮州
            南京
            天母
           
请问如何把excel   A1整列资料转入b.dbf指定的cusid栏位呢!?

------解决方案--------------------------------------------------------
都是第一列的话。
use b.dbf
append from a.xls type xls
------解决方案--------------------------------------------------------
local arrRecList
local oExcel
oExcel=createobject( "excel.application ")
oExcel.visible=.f.
oExcel.workbooks.open( "a.xls ")
arrRecList=oExcel.usedrange.value &&假设表中只有此一列
oExcel.quit
insert into b from array arrRecInfo

  相关解决方案