<-- Previous || Up || Next -->

In Str Characters Fast Function
String Searches Class

Public Function InStrCharactersFast( _
      ByRef vStartPos As Long _
    , ByRef vLine As String _
    , ByRef vFindChars As String _
    , ByRef vCompare As VbCompareMethod _
    ) As Long

"In String Characters (Fast)"
Return the first 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.

    InStrCharactersFast(1, "321CBACBA", "ABC", vbTextCompare) = 4
    InStrCharactersFast(4, "321CBACBA", "123", vbTextCompare) = 0
See also:
    InStrCharacters Function
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.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.