System.SysUtils.TStringHelper.Length

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

property Length: Integer read GetLength;

Propriétés

Type Visibilité  Source Unité  Parent
property public System.SysUtils.pas System.SysUtils TStringHelper

Description

Utilisez Length pour obtenir la longueur de la chaîne de base zéro.

 var
   MyString: String;
 
 begin
   MyString := 'This is a string.';
 
   Writeln(MyString.Length);
 end.

Sortie :

 17

Voir aussi