InStrRev Function (Visual Basic)
Returns the position of the first occurrence of one string within another, starting from the right side of the string.
Public Function InStrRev( ByVal StringCheck As String, ByVal StringMatch As String, Optional ByVal Start As Integer = -1, Optional ByVal Compare As CompareMethod = CompareMethod.Binary ) As Integer
InStrRev returns the following values.
StringCheck is zero-length
StringMatch is zero-length
StringMatch is not found
StringMatch is found within StringCheck
Position at which the first match is found, starting with the right side of the string.
Start is greater than length of StringMatch
See the "Error number" column if you are upgrading Visual Basic 6.0 applications that use unstructured error handling. (You can compare the error number against the Number Property (Err Object).) However, when possible, you should consider replacing such error control with Structured Exception Handling Overview for Visual Basic.
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)