rem 定义
dim arr(5)
rem 赋值
arr(0) = 20
arr(1) = 2
arr(2) = 5
arr(3) = 3
arr(4) = 1
arr(5) = 100
rem 访问
msgbox(arr(2))
rem 遍历
for each v in arr
msgbox(v)
next
vbs教程《数组使用》
最新推荐文章于 2018-06-08 18:28:45 发布
rem 定义
dim arr(5)
rem 赋值
arr(0) = 20
arr(1) = 2
arr(2) = 5
arr(3) = 3
arr(4) = 1
arr(5) = 100
rem 访问
msgbox(arr(2))
rem 遍历
for each v in arr
msgbox(v)
next