PosEx

From SCAR Divi Manual
Revision as of 09:36, 2 July 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function PosEx(const SubStr, S: AnsiString; const Offset: Integer): Integer;

Availability

SCAR Divi 3.10 > Current

Description

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

Example

begin
  WriteLn(PosEx('a', 'lola abc', 5));
end.

Output:

6

See Also