InStrRev Function
Syntax
InStrRev(S1$, S2$[, Index])
Group
Description
Returns the index where S2$ last matches S1$. If no match is found, return 0.
Parameters
| Parameters | Description |
|---|---|
| S1$ | Searches for S2$ in this string value. If this value is Null, Null is returned. |
| S2$ | Searches S1$ for this string value. If this value is Null, Null is returned. |
| Index | Starts searching for S2$ ending at this index in S1$. If this is omitte, start searching from the end of S1$. |
Example
Sub Main Debug.Print InStrRev("Hello","l") ' 4 End Sub
See also