Indy 9
|
function RPos(const ASub: String; const AIn: String; AStart: Integer = -1): Integer;
When AStart is greater than 0, the starting position is the character at the index AStart from the beginning of the string AIn. When AStart is less than 0, the starting position is the character at the index AStart from the end of the string AIn.
The return value of RPos is 0 when the search string in ASub does not occur in the string AIn.