System.SysUtils.TStringHelper.Length
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