Topic Path: Symbol Reference > Functions > IdInsert Function
ContentsIndexHome
PreviousUpNext
IdInsert Function

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

File
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.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.