System.SysUtils.TStringHelper.Length

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Length: Integer read GetLength;

Properties

Type Visibility Source Unit Parent
property public System.SysUtils.pas System.SysUtils TStringHelper

Description

Use Length in order to obtain the length of the zero-based string.

var
  MyString: String;

begin
  MyString := 'This is a string.';

  Writeln(MyString.Length);
end.

Output:

17

See Also