04-04-2024, 12:35 AM
i had a need of a routine to do the opposite of INSTR( in which I wanted to find the last appearance of a search field in the target string. So I wrote the following functions:
I'm not sure how useful this would be, but I suspect someone is going to need one of these at some point.
The functions include a program that runs a set of tests to confirm they work.
- ' Reverse instr: finds last position of search in target
Function Rinstr& (Target As String, Search As String)
- ' Case insensitive search
Function Iinstr& (start As Long, Target As String, Search As String)
- ' Case insensitive reverse seaarch
Function RIinstr& (Target As String, Search As String)
I'm not sure how useful this would be, but I suspect someone is going to need one of these at some point.
The functions include a program that runs a set of tests to confirm they work.
While 1
Fix Bugs
report all bugs fixed
receive bug report
end while
Fix Bugs
report all bugs fixed
receive bug report
end while