VB.NET Language in a Nutshell

   
Erase Statement

Syntax

Erase arraylist

arraylist (required; String literal)

A list of array variables to clear

Description

Releases an array object. This is equivalent to setting the array variable to Nothing .

Rules at a Glance

Programming Tips and Gotchas

Once you use Erase to clear an array, it must be redimensioned with ReDim before being used again. This is because Erase releases the memory storage used by the array.

See Also

Dim Statement, ReDim Statement

   

Категории