Pos

From SCAR Divi Manual
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