ArrayList: Contains |
Returns if the list contains a specific value.
Public Function Contains( ByRef Value As Variant, Optional ByVal Comparer As IComparer ) As Boolean
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 cObject interface, then the Equals method is used to test equality, otherwise the Is operator is use to compare two objects.
If there is special compare logic necessary, then a comparer object can be supplied. The compare object must implement the IComparer interface.
Class ArrayList Overview ArrayList Properties ArrayList Methods CloneHelper CopyTo