vb6 数组赋值(vb数组赋值)
2种方法1. 直接赋值。
此法只适合和小数组Dim myArray() as Integer ={1,2,3,4,5}或Dim myArray(5)as integermyArray(0)=1myArray(1)=2 myArray(2)=3 myArray(3)=3 myArray(4)=5 myArray(5)=62.最常用的for next循环赋值Dim myArray()as integerFor intCount as Integer= 0 to 5myArray(intCount)=你要赋值的东西Next如果你要每个都不同那就这样:Dim myArray()as integerDim FuZhi as integerFor Fuzhi as 0 to 5For intCount as Integer= 0 to 5myArray(intCount)=fuzhiNext intCountNext fuzhi。