TDuplicateMode
Defines what to do with duplicate elements in a collection
Members
Ordinal | Name | Description |
---|---|---|
0 | Allow | Duplicates are allowed |
1 | Filter | Duplicates are ignored and not added to the collection |
2 | Error | Duplicates 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.