Pos

From SCAR Divi Manual
Revision as of 00:15, 29 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function Pos(SubStr, S: AnyString): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Returns the p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function Pos(SubStr, S: AnyString): Integer;

Availability

SCAR Divi 3.00 > Current

Description

Returns the position of the first occurrence of a string SubStr in another string S.

Example

begin
  WriteLn(Pos('a', 'lol abc'));
end.

Output:

5

See Also