Public Function InStrCharactersReverseFast( _
ByRef vStartPos As Long _
, ByRef vLine As String _
, ByRef vFindChars As String _
, ByRef vCompare As VbCompareMethod _
) As Long
"In String Characters Reverse (Fast)"
Return the last position within string vLine of any of the characters within vFindChars.
Faster version of the InStrCharacters function which uses restrictive argument types to avoid argument fix-up code.
Examples: InStrCharactersReverseFast(9, "123CABBAC", "ABC", vbTextCompare) = 9
InStrCharactersReverseFast(6, "CBA123CBA", "ABC", vbTextCompare) = 3
See also: InStrCharactersReverse Function
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.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.