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

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

procedure Assign(
    AThreadList: TIdThreadList
); overload;
Parameters 
Description 
AThreadList 
Thread-safe list containing items to store in the list. 

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

Assign calls the LockList in the AThreadList parameter to create a TIdList instance with the current content for the thread-safe list. Assign calls the overloaded Assign method using the TList instance. Assign calls the UnlockList method in the AThreadList parameter to free 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.