Length

From SCAR Divi Manual
Revision as of 12:15, 16 November 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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