RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.TListAssignOp Enumeration

TListAssignOp indicates how two lists should be merged.

Pascal
TListAssignOp = (
  laCopy,
  laAnd,
  laOr,
  laXor,
  laSrcUnique,
  laDestUnique
);
C++
enum TListAssignOp {
  laCopy,
  laAnd,
  laOr,
  laXor,
  laSrcUnique,
  laDestUnique
};

TListAssignOps describes how the Assign method combines a source and destination list:

Value 
Meaning 
laAnd  
Removes all elements from the destination list that do not appear in the source list. The destination list ends up containing the intersection of the two lists.  
laCopy  
Overwrites the destination list with the source list.  
laDestUnique  
Removes all elements from the destination list that appear in the source list. The destination list ends up containing the elements unique to the original destination list. (same as laOr followed by laXor)  
laOr  
Adds any elements from the source list that do not already appear in the destination list. The destination list ends up containing the union of the two lists.  
laSrcUnique  
Replaces the destination list with those elements of the source list that do not appear in the destination list. (same as laAnd followed by laXor)  
laXor  
Removes all elements from the destination list that appear in the source list and adds any elements from the source list that do not appear in the original destination list. The destination list ends up with the elements unique to both the source and destination lists.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!