VariantCollection.IndexOf Method (console safe)
Returns a index of a element in the collection.

IndexOf(
item
as Variant)
as Integer
Parameters
- item
- The item to look for.
Returns
- Integer
- The index of the found element or -1 if not found.
Remarks
Note this is a linear lookup which is not very efficient. It is though much faster to use this operator than to try to do linear search externally.
See Also
VariantCollection Class