LastPos
From SCAR Divi Manual
function LastPos(const SubStr, Str: AnsiString): Integer;
SCAR Divi 3.10 > Current
Returns the position of the last occurrence of a string SubStr in another string Str.
begin WriteLn(LastPos('a', 'alol abc')); end.
Output:
6