'Declaration Public Shared Function InStrRev( _ ByVal stringCheck As String, _ ByVal stringMatch As String, _ Optional ByVal start As Integer, _ Optional ByVal compare As CompareMethod _ ) As Integer
public static int InStrRev( string stringCheck, string stringMatch, int start, CompareMethod compare )
Parameters
- stringCheck
- Required. String expression being searched.
- stringMatch
- Required. String expression being searched for.
- start
- Optional. Numeric expression setting the one-based starting position for each search, starting from the left side of the string. If start is omitted then –1 is used, meaning the search begins at the last character position. Search then proceeds from right to left.
- compare
- Optional. Numeric value indicating the kind of comparison to use when evaluating substrings. If omitted, a binary comparison is performed. See Settings for values.
Return Value
If stringCheck is zero-length, InStrRev returns 0. If stringMatch is zero-length, InStrRev returns start. If stringMatch is not found, InStrRev returns 0. If stringMatch is found within stringCheck, InStrRev returns position at which the first match is found, starting with the right side of the string. If start is greater than length of stringMatch, InStrRev returns 0.