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...") |
|||
Line 22: | Line 22: | ||
==See Also== | ==See Also== | ||
*[[PosEx]] | *[[PosEx]] | ||
+ | *[[LastPos]] | ||
*[[Copy]] | *[[Copy]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:String Functions]] | [[Category:String Functions]] |
Latest revision as of 08:30, 2 July 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