Kaway Posted January 23, 2015 Share Posted January 23, 2015 [HIDE-THANKS]This is an InStrRev function that can be used in VB5 or VB6. It enhances the VB6 InStrRev function in that, if you set the fourth parameter to true, it will return the the position of the last occurrence of the substring relative to the end of the string as opposed to the beginning, e.g., l = InStrRev("Hello", "o", , True) returns 1, whereas VB6's InstrRev function would return 5 if "o" is passed as the substring and Hello is passed as the search string. l = InStrRev This is the hidden content, please Sign In or Sign Up [/HIDE-THANKS] Link to comment Share on other sites More sharing options...
Recommended Posts