LastIndexOf
Returns 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,
Optional ByVal Comparer As IComparer ) As Long
Parameters
- Value
-
[ByRef]
Variant.
The value to search for in the list.
- StartIndex
-
[ByRef]
Optional.
Variant.
The index to start searching from.
- Count
-
[ByRef]
Optional.
Variant.
The number of items to be searched.
- Comparer
-
[ByVal]
Optional.
IComparer.
A custom comparer to perform any special compare logic.
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. If a startindex
See Also
Project VBCorLib Overview
| Class ArrayList Overview