如何在vbscript中给二维数组赋值
1个回答
展开全部
你定义的是一个二维数组,在VB中最多可以定义六十维。你定义了16个变量数组(VB数组是从0开始的)方法如下:
Dim a(3,3) As Integer
a(0,0) = 12
a(0,1) = 23
a(0,2) = 12
a(0,3) = 77
a(1,0) = 47
a(1,1) = 55
a(1,2) = 12
a(1,3) = 23
a(2,0) = 12
a(2,1) = 23
a(2,2) = 12
a(2,3) = 23
a(3,0) = 12
a(3,1) = 23
a(3,2) = 12
a(3,3) = 23
Dim a(3,3) As Integer
a(0,0) = 12
a(0,1) = 23
a(0,2) = 12
a(0,3) = 77
a(1,0) = 47
a(1,1) = 55
a(1,2) = 12
a(1,3) = 23
a(2,0) = 12
a(2,1) = 23
a(2,2) = 12
a(2,3) = 23
a(3,0) = 12
a(3,1) = 23
a(3,2) = 12
a(3,3) = 23
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |