Length

From SCAR Divi Manual
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