展开全部
' 二维数组
row = 0
for i=lbound(data, 1) to ubound(data, 1)
col = 0
for j=lbound(data, 2) to ubound(data, 2)
grid.textmetrix(start_row+row, start_col+col) = data(i, j)
col = col + 1
next
row = row + 1
next
' 记录集
row = start_row
while (not rst.eof)
col = start_col
for each f in rst.fields
grid.textmetrix(row, col) = f.value
col = col + 1
next
rst.movenext
row = row + 1
loop
row = 0
for i=lbound(data, 1) to ubound(data, 1)
col = 0
for j=lbound(data, 2) to ubound(data, 2)
grid.textmetrix(start_row+row, start_col+col) = data(i, j)
col = col + 1
next
row = row + 1
next
' 记录集
row = start_row
while (not rst.eof)
col = start_col
for each f in rst.fields
grid.textmetrix(row, col) = f.value
col = col + 1
next
rst.movenext
row = row + 1
loop
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询