System.SysUtils.TStringHelper.Length

提供: RAD Studio API Documentation
移動先: 案内検索

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

関連項目