Access/VBA Library

Clear Method

Removes all elements of the array.

Syntax

array_.Clear()
Parameters
Name Type Description
array_   The name of an object of type array_
Example
  Dim x As New Array_

  x.Add "Element one"
  x.Add "Element two"
  x.Clear
  ' Result :
  'Array (
  ')