' Declare an array with 7 elements.
Dim students(6) As Integer
It declares a students array with seven elements. The number 6 in the array declaration indicates the last index in the array; it is one less than the number of elements in the array.
I don’t believe it’s a bug since it’s working as Microsoft described.
You said in your first post that your intCount is 22, so strList = New String(intCount) in your case is strList = New String(22). Since 22 is your last index you would have 23 elements (0 to 22).
OK - In my past experiences, the number provided in the init statement (strList = New String( intCount )), intCount would be the number of items (indices 0…intCount-1), not the highest index (indices 0…intCount). This is why I am confused. Thanks.