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

説明

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

 var
   MyString: String;
 
 begin
   MyString := 'This a string.';
 
   Writeln(MyString.Insert(5, 'is '));
 end.

出力は以下のとおりです。

 This is a string.

関連項目