UwzDN‖

W6k5N‖Erase Statement

xqtMK‖Erases the contents of array elements of fixed size arrays, and releases the memory used by arrays of variable size.

FVEx2‖Syntax:

3sXFq‖Erase syntax


  CCyg8‖Erase array1 [, array2 [,...]]

WADQ4‖Parameters:

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

EFSA4‖Example:


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

gSa7g‖Dim or ReDim statements

CtoLf‖Array or DimArray functions

XxNXe‖Lbound and Ubound functions