DIAdem Help

Method: Erase for VBS

  • Updated2024-09-12
  • 1 minute(s) read

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)
ObjectVBS
Object with this method. You do not need to specify this object.
arraylistVariant
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)

Related Topics

Array | Dim | Private | Public | ReDim | IsArray | Erase | LBound | UBound

Log in to get a better experience