Pos

From SCAR Divi Manual
Revision as of 08:30, 2 July 2011 by Freddy (talk | contribs)
(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