目录

# Erase Statement

擦除固定大小数组的数组元素的内容，并释放可变大小数组所使用的内存。

### 语法:

      Erase array1 [, array2 [,...]]

### 参数:

array list - A comma delimited list of arrays to be erased.

### 示例:

      Sub Erase_Example
          a = Array(1,2,3) :  b= Array("z","y","x") : c=Array(a,b)
          Erase a, c(Ubound(c)) ' b and c(0) are unchanged
          Erase b, c(0) ' everything gets cleared
      End Sub

相关主题

Dim or ReDim statements

Array or DimArray functions

Lbound and Ubound functions

请支持我们!