Difference between revisions of "Pos"
From SCAR Divi Manual
(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...") |
(No difference)
|
Revision as of 00:15, 29 June 2011
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