VB.NET 动态二维数组如何循环赋值和取值

2024-11-15 15:17:16
推荐回答(2个)
回答1:

for i =0 to ...
for j =0 to ...
keyarray(i,j)=
next
next
双重循环,赋值和读取一样

回答2:

赋值:
weekname(1,1)="星期一"
weekname(2,1)="星期二"
weekname(3,1)="星期三"
取值
dim S1 as string
s1=weekname(1,1) '取出星期一 一次类推