Substring.Length Property

property Length: Integer read FLength;

The number of characters in the window, read-only.

Returns: Integer

Remarks:

A string's length follows from its characters; Resize and the functions change it.

Examples

The length.

uses Substr;

procedure Example;
begin
    Assert(Substring('abc').Length = 3);
end;