Difference between revisions of "Length"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function Length(s): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Returns the length of an arra...") |
|||
Line 8: | Line 8: | ||
==Description== | ==Description== | ||
− | Returns the length of an array or a string given in '''s'''. | + | Returns the length of an [[arrays|array]] or a [[string]] given in '''s'''. |
==Example 1 (Arrays)== | ==Example 1 (Arrays)== |
Latest revision as of 12:15, 16 November 2011
Contents
Definition
function Length(s): Integer;
Availability
SCAR Divi 3.00 > Current
Description
Returns the length of an array or a string given in s.
Example 1 (Arrays)
begin WriteLn(Length([2, 4, 6, 8, 10])); end.
Output:
5
Example 2 (Strings)
begin WriteLn(Length('Hello World!')); end.
Output:
12