System.SysUtils.TStringHelper.Insert
Delphi
function Insert(StartIndex: Integer; const Value: string): string;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
Description
Inserts a string in this string at the given position.
var
MyString: String;
begin
MyString := 'This a string.';
Writeln(MyString.Insert(5, 'is '));
end.
Output:
This is a string.