System.Classes.TListAssignOp

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TListAssignOp = (laCopy, laAnd, laOr, laXor, laSrcUnique, laDestUnique);

C++

enum DECLSPEC_DENUM TListAssignOp : unsigned char { laCopy, laAnd, laOr, laXor, laSrcUnique, laDestUnique };

Properties

Type Visibility Source Unit Parent
enum public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

TListAssignOp indicates how two lists should be merged.

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.