Topic Path: Symbol Reference > Classes > TIdThreadSafeStringList Class > TIdThreadSafeStringList Methods > Add Method
ContentsIndexHome
PreviousUpNext
TIdThreadSafeStringList.Add Method

Adds a string value to the thread-safe data type.

procedure Add(
    const AItem: string
);
Parameters 
Description 
AItem 
String value added to the data type. 

Add is a procedure used to add the String value in AItem to the Value for the thread-safe data type. 

Add calls Lock to enable resource protection for Value prior to adding the contents of AItem to the thread-safe data type. 

Adds calls Unlock to disable resource protection for Value when AItem has been added, or an exception is raised. 

Use AddObject to add a string with an associated object instance to the thread-safe data type. 

Use Remove or Clear to delete one or all items in the thread-safe 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.