Erase
Statement to erase arrays
Syntax
`
Declare Sub Erase ( array As Any [, ... ] )
`
Usage
`
Erase( array0 [, array1 ... arrayN ] )
`
Parameters
`array`
An array to be erased.
Description
Erases the element data of one or more variable-length arrays from memory, or clears (re-initializes) all elements in a fixed-length array.
Example
`
Dim MyArray1(1 To 10) As Integer
ReDim MyArray2(1 To 10) As Integer
Erase MyArray1, MyArray2
`
Differences from QB

- None

See also

- `Common`
- `Dim`
- `Extern`
- `LBound`
- `ReDim`
- `Static`
- `UBound`
- `Var`