TDuplicateMode

Defines what to do with duplicate elements in a collection

Members

OrdinalNameDescription
0AllowDuplicates are allowed
1FilterDuplicates are ignored and not added to the collection
2ErrorDuplicates are not allowed and EDuplicate is raised

Source

Collection.pas (35)

Description

Some collections allow to specify the way duplicate elements should be handled. This can be useful, for instance, when you want to consider it an error when an element is added to a collection that is already present.