Visual Basic has a useful function called InStrRev, which is (as the name suggests) sort of an InStr in Reverse, i.e., it starts counting characters at the right rather then at the left.
I know that there are many ways that a Xojo equivalent could be written (e.g., reversing the original string, using a backwards For/Next loop (with Downto, etc.), so it shouldn't be difficult for me to write a Xojo equivalent myself.
I don't mind re-inventing the wheel, but what I come up with is likely NOT to be the BEST solution to the problem. I'd be much interested in what people here have come up with as the BEST answer to the question.
What I'm hoping for is something that may be an elegantly simple (or simply elegant?) solution. (Doesn't an Xojo counterpart to VB's InStrRev deserve to be simple and elegant?) But please post code you've found useful even if you aren't convinced that it fully meets tne previous description. Thanks!