请教“数组维数无效”的问题
我的运行环境是WIN10+vfp9+EXCEL2007,运行如下代码时出现“数组维数无效”的提示,请教方家,是何原因?谢谢!LCFILENAME=GETFILE("XLS,XLSX","文件名","确定",0,"请选择EXCEL文件")
OEXCEL=CREATEOBJECT('Excel.application')
OEXCEL.WORKBOOKS.OPEN('&lcFileName') &&打开文件
R=oexcel.activesheet.usedrange.rows.count
c= oexcel.activesheet.usedrange.columns.count
DIMENSION laxls(R,C)
laxls = OEXCEL.activesheet.usedrange.value
Creat table zhaoai from array laxls
招生计划.rar
(584.1 KB)