System.SysUtils.TStringHelper.Insert
Delphi
function Insert(StartIndex: Integer; const Value: string): string;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
Description
Insère une chaîne dans cette chaîne de base zéro à la position donnée.
var
MyString: String;
begin
MyString := 'This a string.';
Writeln(MyString.Insert(5, 'is '));
end.
Sortie :
This is a string.