Yeah i remember that, heh... i don't think i've touched VB in ages...Originally posted by HellVeN
If you're not sure about the upper bound of the array, use the redim statement to redefine the limits of the array. The Preserve keyword keeps the contents of the array.
Dim IntegerArray() As Integer
Dim i As Integer
For i = 0 To 8
ReDim Preserve IntegerArray(i)
IntegerArray(i) = i
Next i
Remember that this sets 9 numbers (0 to 8).