VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

RevInStr

Shane Presley  (1 Submission)   String Manipulation   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Visual Basic 6 has a new function called InStrRev, which searches a string from right to left. I found it very usefeul, so much so that a project of mine relies completely on it. When I tried to work on the project at another location on VB5 I found that the function did not exist. So, I wrote it.
I left out the compare method, you can add it if you want

Inputs
RevInStr(String1 As String, String2 As String)

Assumes
Example: let positon = RevInStr("Http://www.mypage.com/","/") In this case position would be 22, not 1

Returns
The Integer returned is the postion of the String 2 in String 1.

API Declarations
None

Rate RevInStr (38(38 Vote))
RevInStr.bas

RevInStr Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters