InstrRev() |
Top Previous Next |
InStrRev() - Find a string within another (Reverse) Description The InStrRev() function returns the position of an occurrence of one string within another, starting from the end of string. InStrRev(haystack, needle[,start[, compare]]) Parameters The needle parameter is the string to search for. The optional start parameter specifies the position to start the search. The optional compare parameter specifies the the method of comparison according to [id=43]this table[/id]. The start parameter is required if compare is specified. Example haystack = "The quick brown fox"
Result = InStrRev(haystack, "o") 'returns 18 Result = InStrRev(haystack, "o", 15) 'returns 13 |