System.SysUtils.TStringHelper.Insert

From RAD Studio API Documentation
Jump to: navigation, search

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 0-based string at the given position.

var
  MyString: String;

begin
  MyString := 'This a string.';

  Writeln(MyString.Insert(5, 'is '));
end.

Output:

This is a string.

See Also