Topic Path: Symbol Reference > Classes > TIdThreadSafeStringList Class > TIdThreadSafeStringList Methods > AddObject Method
TIdThreadSafeStringList.AddObject Method

Adds a string value and an associated object instance to the thread-safe data type.

procedure AddObject(
    const AItem: string; 
    AObject: TObject
String value added to the data type.
Object instance added to the data type. 

AddObject is a procedure used to add the String in AItem and the object instance in AObject to the items in Value for the thread-safe data type. 

AddObject calls Lock to enable resource protection for Value prior to adding the item and object to the thread-safe data type. 

Adds calls Unlock to disable resource protection for Value when the item and onbject have been added, or an exception is raised. 

Use Add to add a string to the items in 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.