ArrayList: Contains

Contains

Determines if the list contains a specific value.



 Public Function Contains(
	  ByRef Value As Variant ) As Boolean

Parameters

Value
[ByRef] Variant. The value to search for.

Return Values

Boolean -  True if Value is found in the list; False otherwise.

Remarks

This method performs a linear search of all elements in the list comparing each element with the value being searched for. If the value is an object, then if it implements the IObject interface the Equals method is used to test equality, otherwise the Is operator is used to compare two objects.

See Also

Project CorLib Overview

Class ArrayList Overview