Difference between revisions of "Length"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
(No difference)

Revision as of 15:44, 15 November 2011

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

See Also