大家好,萱萱来为大家解答以下的问题,关于下标越界怎么解决 vb,下标越界9怎么解决这个很多人还不知道,那么现在让我带着大家一起来看看吧!
1、Private Sub Command1_Click() Dim a(1, 15) As Integer, i As Integer, j As Integer, t As Integer, n As Integer For i = 0 To 1 For j = 0 To 10 a(i, j) = Int(Rnd * 10) + 10 Print a(i, j); Next j Print Next i For i = 0 To 1 For j = 0 To 10 a(i, j) = a(i, j + 5) Print a(i, j + 5); Next j Print Next iEnd Sub。
本文今天分享完毕,希望对您有所帮助。