I don't have VB6 installed and don't have the help for taht function, but as i can see the function (implemented in VB6) should be something like this:


Function InStrRev(Str As String, ToFind As String)
Dim i As Integer
For i = Len(Str) To 1 Step -1
If Mid$(Str, i, 1) = ToFind Then Exit For
Next i
InStrRev = i
End Function

If you see, it's similar to the InStr() function, but it starts from the back. That's why the "Rev", from Reverse I guess.