MyArray is array of 5 by 2 int
VariableReset(MyArray)
Syntax
VariableReset(<Variable Name>)
<Variable Name>: Type of variable
Variable to reinitialize.
Remarks
If the variable is an Array, the array is not resized. All the array elements are reset to their initial values:
- The booleans are reset to False.
- The numeric values are reset to 0.
- The strings are reset to empty strings ("").
- The members of instances and structures are reset to their initial values.
- The instances, structures and dynamic arrays are freed.
To reset the size of a one-dimensional array to 0, use
ArrayDeleteAll.
If the variable is an object:
- the destructor is called
- if it is a dynamic instance, the object is freed.
- if it is a non-dynamic instance, the constructor is called