LastIndexOf
Returns the index of the last occurrence of a value in the list.
Public Function LastIndexOf(
ByRef Value As Variant,
Optional ByRef StartIndex As Variant,
Optional ByRef Count As Variant ) As Long
Parameters
- Value
-
[ByRef]
Variant.
The value to search for in the list.
- StartIndex
-
[ByRef]
Optional.
Variant.
The zero-based index to start searching from.
- Count
-
[ByRef]
Optional.
Variant.
The number of items to be searched.
Return Values
Long - The index of the last occurrence of the value, or -1 if not found.
Remarks
The search is performed from the end of the list towards the beginning.
See Also
Project CorLib Overview
Class ArrayList Overview