Search a substring in the given source string starting from the end (right side) of the source string. The behavior is equal to the new _INSTRREV function introduced in QB64 v1.3, but I recommend using RInstr() instead, if you want your program to be usable with the older QB64 versions too.
SYNTAX:
position& = RInstr& (start&, source$, find$)
INPUTS:
start& (LONG)
- Optional the start position (>0) for the search counted from the left side, or zero to search the entire source string.
source$ (STRING)
- The source string to search for any matches of find$.
find$ (STRING)
- The substring to look for in the source string.
RESULT:
position& (LONG)
- The position of the first match found or zero if no match is found.