PosEx

From SCAR Divi Manual
Revision as of 08:28, 2 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function PosEx(search, s: AnsiString; from: Integer): Integer; </source> ==Availability== SCAR Divi 3.10 > Current ==Descripti...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function PosEx(search, s: AnsiString; from: Integer): Integer;

Availability

SCAR Divi 3.10 > Current

Description

Returns the position of the first occurrence of a string search in another string s while starting the search at the position given by from.

Example

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

Output:

6

See Also