Sign in Join
FPDoc Onlineexperiment

TFPSMap.Duplicates property

Member of TFPSMappublicIn unit fgl

What to do with duplicate key values.

Declaration

pascal
property Duplicates: TDuplicates read FDuplicates write FDuplicates;

Description

Duplicates can be set to determine what to do with duplicate key values in the map:

dupIgnore

Ignore the new item, do not add it to the list.

dupAccept

Accept duplicates, adding them to the list.

dupError

Raise an error when an attempt is made to add a duplicate.

The value is ignored if Sorted is False.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.