InStr Revstring1 string2[ start[ compare

This function returns the position of one string within another as does the InStr() function, but it starts from the end of the string (hence InStrRev = "in string reverse"). The stringl argument is the string being searched, and the string2 argument is the string being searched for. The other two arguments are optional. The start argument is the starting position for the search. If it is omitted, the search begins at the last character. Notice that in this function, the starting location of the search is the third argument. The compare argument indicates the kind of comparison to be used in locating the substrings, and its value is one of the members of the CompareMethod enumeration, listed in Table 8 earlier. If compare is omitted, a binary comparison is performed.

0 0

Post a comment