clear
close databases
set safety off
eole = CREATEOBJECT("Excel.Application")
eole.Workbooks.Open("D:\群问题\123.xls")
nrows=eole.activesheet.usedrange.rows.count && 有效行
ncols=eole.activesheet.usedrange.columns.count && 有效列
local asj[nrows-1,ncols]
for i=2 to nrows
for ii=1 to ncols
asj[i-1,ii]=eole.SHEETS(1).CELLS(i,ii).text
endfor
endfor
eole.quit
RELEASE eole
use s123 in 0
zap
append from array asj
browse