/ Published in: Delphi
Expand |
Embed | Plain Text
function RPos(SubStr: string; S: string): integer; var I: integer; begin SubStr := String_Reverse(SubStr); S := String_Reverse(S); I := pos(SubStr, S); if I <> 0 then I := (Length(S) + 1) - (I + Length(SubStr) - 1); Result := I; end;
You need to login to post a comment.
