CorArray: Clear

Clear

Clears a portion of the elements in an array.



 Public Sub Clear(
	  ByRef Arr As Variant,
	  ByVal Index As Long,
	  ByVal Length As Long )

Parameters

Arr
[ByRef] Variant. The array to clear elements from.
Index
[ByVal] Long. The starting element to being clearing.
Length
[ByVal] Long. The number of elements to be cleared.

Exceptions

Exception Condition
ArgumentNullExceptionArr is uninitialized.
IndexOutOfRangeException Index is less than the lower-bound of Arr.
-or-
Length is less than zero.
-or-
The sum of Index and Length is greater than the upper-bound of Arr.

See Also

Project CorLib Overview

Class CorArray Overview