Signature (Visual Basic / VBA)
Public Function InStrCharactersFast( _
ByRef vStartPos As Long _
, ByRef vLine As String _
, ByRef vFindChars As String _
, ByRef vCompare As VbCompareMethod _
) As Long
Code Example
InStrCharactersFast(1, "321CBACBA", "ABC", vbTextCompare) = 4
InStrCharactersFast(4, "321CBACBA", "123", vbTextCompare) = 0
Parameters
| Parameter | Description |
|---|---|
| vStartPos | The position of the character in string vLine where the search is to begin. |
| vLine | The string which is to be searched from left-to-right 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. |