Navigation: Function Reference > General Utility Functions > insert()

insert()

Top  Previous  Next

insert( source: String; target: String; position: Integer ) : String;

 

Inserts one string (source) into another string (target) at the specified position. The first character of a string has an index = 1.

 

Parameters

 

source

string value

target

string value

position

integer value - offset into target

 

var s: string;

 

s := 'abc';

 

Insert( 'defg', s, 4 );

 

//s is now equal to 'abcdefg';