Private Sub Form_Click() Dim a() As Integer ReDim a(5) a(5) = 50 Print a(5) Erase a Dim b() As Integer ReDim b(5) b(5) = 100 Print a(5) Print b(5) End Sub
慕码人2483693
浏览 154回答 2
2回答
白衣非少年
Private Sub Form_Click()Dim a() As IntegerReDim a(5)a(5) = 50Print a(5)Erase a 这时已经删除a了,Dim b() As IntegerReDim b(5)b(5) = 100Print a(5) 这里你还用a,当然会出错Print b(5)End Sub