LastPosEx

From SCAR Divi Manual
Revision as of 03:51, 18 September 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function LastPosEx(const SubStr, Str: AnsiString; const Offset: Integer): Integer;

Availability

SCAR Divi 3.10 > Current

Description

Returns the position of the last occurrence of a string SubStr in another string Str starting from the position given by Offset.

Example

begin
  WriteLn(LastPosEx('a', 'alol abc', 5));
end.

Output:

1

See Also