IndexOfAny
Returns the index of the first character found in the OfAny set of characters.
Public Function IndexOfAny(
ByRef s As String,
ByRef OfAny As Variant,
Optional ByVal Index As Variant,
Optional ByVal Count As Variant ) As Long
Parameters
- s
-
[ByRef]
String.
The string to be searched.
- OfAny
-
[ByRef]
Variant.
The set of characters to search for (String or Integer() Array).
- Index
-
[ByVal]
Optional.
Variant.
The starting index of s to begin searching.
- Count
-
[ByVal]
Optional.
Variant.
The number of characters in s to search.
Return Values
Long - The index of a character from the set, or -1 if none are found.
Remarks
The indexing of s is zero-based.
See Also
Project VBCorLib Overview
Class cString Overview
cString Properties
cString Methods
FromCharArray
Insert