ArrayList: IndexOf

IndexOf

Returns the index of the first occurrence of the value in the list.



 Public Function IndexOf(
	  ByRef Value As Variant,
	  Optional ByRef StartIndex As Variant,
	  Optional ByRef Count As Variant ) As Long

Parameters

Value
[ByRef] Variant. The value to search the list for.
StartIndex
[ByRef] Optional. Variant. The zero-based index to begin the search in the list.
Count
[ByRef] Optional. Variant. The number of items in the list to search.

Return Values

Long -  The index of the first occurrence of value, or -1 if the value was not found.

Remarks

This method determines equality by calling Object.Equals.

See Also

Project CorLib Overview

Class ArrayList Overview