Arrays 索引超出了数组visual Basic的范围

Arrays 索引超出了数组visual Basic的范围,arrays,indexing,bounds,Arrays,Indexing,Bounds,我有一个错误,我的索引超出了数组的界限。 有人能帮我看一下代码吗 Private Sub picList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picList.Click frmList.Show() frmList.lstShow.Items.Clear() Dim fmtStr As String = "{0,-5}{1,-10}{2,-15}{3,-20}{

我有一个错误,我的索引超出了数组的界限。
有人能帮我看一下代码吗

Private Sub picList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picList.Click
    frmList.Show()
    frmList.lstShow.Items.Clear()
    Dim fmtStr As String = "{0,-5}{1,-10}{2,-15}{3,-20}{4,-25}"
    With frmList.lstShow.Items
        .Add(String.Format(fmtStr, "University Name", "Abbreviation", "State", "Accredited Year", "Total Students"))
        For A = 0 To N - 1
            .Add(String.Format(fmtStr, Name(A), Abbreviation(A), State(A), Accredited(A), Total(A)))
        Next
        .Add(String.Format(fmtStr, "", "", "", "", ""))
        .Add("Total of " & N & " Universities.")
    End With
End Sub

在哪一行抛出异常?此时变量的值是什么?名称、缩写、状态、认证和总计的UBounds是什么?