其功能:Erase語句用來重新初始化靜態(tài)數(shù)組的元素,或者釋放動態(tài)數(shù)組的存儲空間。Private Sub Form_Click()Dim a() As IntegerReDim a(5)a(5) = 50Print a(5)Erase aDim b() As IntegerReDim b(5)b(5) = 100Print a(5)Print b(5)End Sub
為什么這段代碼會發(fā)生錯誤呢?如下所示:
慕碼人2483693
2023-04-22 18:14:19