Method: Erase for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Erase for VBS
Method: Erase for VBS
Reinitiates arrays and frees up disk space. The elements from numeric arrays with a fixed size receive the value 0, the elements from text arrays with a fixed size receive an empty string and objects are reset to Nothing.
Object.Erase(arraylist)
| Object | VBS Object with this method. You do not need to specify this object. |
| arraylist | Variant Specifies the name of the array variables. |
The following example first declares arrays and then resets the arrays:
Dim NumericArray(11) Dim DynamicArray() ReDim DynamicArray(7) Erase(NumericArray) Erase(DynamicArray)
See Also
Related Topics
Array | Dim | Private | Public | ReDim | IsArray | Erase | LBound | UBound