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

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

procedure IdInsert(
    const Source: string; 
    var S: string; 
    Index: Integer
Value to insert in the target string data type.
String to receive the inserted value.
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.