comp • gb • array • clear

Array.Clear (gb)

Sub Clear ( )

Clears the array.

If the array has one dimension only (i.e. if it is a vector), then each element is removed. After the clear, the size of the array is zero.

If the array is multi-dimensional, then the array contents is just reset to zero or NULL, according to the array datatype.