RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TList.Assign Method

Copies elements of one list to another.

Pascal
procedure Assign(ListA: TList; AOperator: TListAssignOp = laCopy; ListB: TList = nil);
C++
__fastcall Assign(TList ListA, TListAssignOp AOperator = laCopy, TList ListB = nil);

Call Assign to assign the elements of another list to this one. Assign combines the source list with this one using the logical operator specified by the AOperator parameter. 

If the ListB parameter is specified (Delphi) or not NULL (C++), then Assign first replaces all the elements of this list with those in ListA, and then merges ListB into this list using the operator specified by AOperator. 

If the ListB parameter is not specified (Delphi) or NULL (C++), then Assign merges ListA into this list using the operator specified by AOperator. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!