System.SysUtils.TStringHelper.Insert

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function Insert(StartIndex: Integer; const Value: string): string;

プロパティ

種類 可視性 ソース ユニット
function public System.SysUtils.pas System.SysUtils TStringHelper


説明

文字列をこの文字列の指定された位置に挿入します。

var
  MyString: String;

begin
  MyString := 'This a string.';

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

出力:

This is a string.

関連項目