以下是引用sdta在2015-5-9 21:33:23的发言:
use b1
gnDbcnumber = ADIR(gaDatabase, '*.DBf')
FOR nCount = 1 TO gnDbcnumber
insert into b1 values (gaDatabase(nCount,1))
ENDFOR
gaDatabase 是一个二维数组
或者
use b1
gnDbcnumber = ADIR(gaDatabase, '*.DBf')
local aa[gnDbcnumber]
FOR nCount = 1 TO gnDbcnumber
aa[nCount]=gaDatabase(nCount,1)
ENDFOR
insert into b1 from array aa
谢谢!学习一下