System.SysUtils.TStringHelper.Length
Delphi
property Length: Integer read GetLength;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
property | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
説明
Length を使用すると、0 基準の文字列の長さを取得することができます。
var
MyString: String;
begin
MyString := 'This is a string.';
Writeln(MyString.Length);
end.
出力は以下のとおりです。
17