System.SysUtils.TStringHelper.Insert

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 à la position donnée.

var
  MyString: String;

begin
  MyString := 'This a string.';

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

Sortie :

This is a string.

Voir aussi