Signature (Visual Basic / VBA)
Public Function InStrCharactersReverseFast( _
ByRef vStartPos As Long _
, ByRef vLine As String _
, ByRef vFindChars As String _
, ByRef vCompare As VbCompareMethod _
) As Long
Code Example
InStrCharactersReverseFast(9, "123CABBAC", "ABC", vbTextCompare) = 9
InStrCharactersReverseFast(6, "CBA123CBA", "ABC", vbTextCompare) = 3
Parameters
| Parameter | Description |
|---|---|
| vStartPos | The character position in string vLine where the search is to begin. |
| vLine | The string which is to be searched from right-to-left for characters that appear in string vFindChars. |
| vFindChars | String containing characters that are to be searched for within string vLine. Function returns 0 (zero) if vFindChars is an empty string. |
| vCompare | Specifies the type of comparison used to find matching characters present in both strings. Function returns 0 (zero) if none of the characters in string vFindChars appear within string vLine. |