我有这段代码:
Module Module1
Dim x As Integer = 1
Dim y As Integer = 1
Dim arr(x, y) As String
Sub Main()
x += 2
y += 3
For ix = 0 To x
For iy = 0 To y
arr(ix, iy) = String.Format("{0}:{1}", ix, iy)
Next
Next
For ix = 0 To x
For iy = 0 To y
Console.WriteLine(arr(ix, iy))
Next
Next
Console.Read()
End Sub
End Module
我试图改变数组维度的上界,但是出现了以下错误:"Index was outside the bounds of the array"。请问我做错了什么?