Topic Path: Symbol Reference > Classes > TIdThreadSafeString Class > TIdThreadSafeString Methods > Prepend Method
ContentsIndexHome
PreviousUpNext
TIdThreadSafeString.Prepend Method

Adds data at the beginning of existing values in the thread-safe data type.

procedure Prepend(
    const AValue: string
);
Parameters 
Description 
AValue 
Values to be added at the beginning of existing content. 

Prepend is a procedure used to insert the string data specified in AValue at the beginning of existing content in Value for the thread-safe data type. 

Prepend calls Lock to enable resource protect while updating the content of Value

Prepend calls Unlock to disable resource protection proper to exiting from the method. 

Use Append to add a value to the end of existing content in Value.

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