Internet Direct (Indy)
Home
PreviousUpNext
IdInsert Function

Inserts a string value into an existing string at the indicated position.

Pascal
procedure IdInsert(
    const Source: string; 
    var S: string; 
    Index: Integer
);
Parameters 
Description 
Source 
Value to insert in the target string data type.
 
String to receive the inserted value.
 
Index 
Initial position in the string where the inserted value is stored. 

IdInsert is a procedure used to insert the string value specified in Source into the argument S at the position indicated in Index. Please note that Index is always a one-based offset into the string data type. 

IdInsert isolates the dependency on the Insert procedure from the Borland RTL as used in the Indy library. 

Use IdDelete to delete a specified number fo characters from a string data type.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.