System.SysUtils.TStringHelper.Chars
Delphi
property Chars[Index: Integer]: Char read GetChars;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
property | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
Description
Accède individuellement aux caractères dans cette chaîne de base zéro. La propriété Chars est en lecture seule.
var
I: Integer;
MyString: String;
begin
MyString := 'This is a string.';
for I:= 0 to MyString.Length - 1 do
Write(MyString.Chars[I]);
end.
Sortie :
This is a string.