BSTRCollection.FindItem Method

Searches the collection for a given string.
Syntax:
Public Function FindItem(item As String) As Long
Parameter Description
item

Specifies the string to look for.

Return Value:

If the collection contains a string equal to the given string, the FindItem method returns the index of this item in the collection. If the string is not found, the FindItem method returns -1.

See also: BSTRCollection, BSTRCollection.Count, BSTRCollection.Item

<< BSTRCollection