Topic Path: Symbol Reference > Classes > TIdThreadSafeList Class > TIdThreadSafeList Methods > Assign Method > Assign Method (TIdList)
ContentsIndexHome
PreviousUpNext
TIdThreadSafeList.Assign Method (TIdList)

Copies items stored in a list to the current thread-safe list instance.

procedure Assign(
    AList: TIdList
); overload;
Parameters 
Description 
AList 
List containing items to store in the thread-safe list. 

Assign is an overloaded method used to store the contents of the TIdList specified in AList to the current thread-safe list instance. 

Assign calls LockList to enable resource protection for the thread-safe list. Any existing items in the list are removed using Clear. The list capacity is set to the Capacity indicated in AList. 

Assign iterates over items in AList, and calls the Add method to store the TObject instances in the thread-safe list. 

Assign calls UnlockList to disable resource protection for the thread-safe list.

TIdThreadSafeList.Assign

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