Arrays In VB6.0
Arrays are declared like any other variable using a Dim statement
Dim colorList(2) As String
Notice
- The syntax is just like a normal declaration except for the parenthesis pair
- In the parentheses is the largest desired index
- The total number of elements of the array will be one more than the largest index, since the origin is 0
- The type applies to all of the elements