TMethodList.AllowDuplicates property
Indicates if duplicate methods are allowed in the list.
Declaration
property AllowDuplicates: Boolean read FAllowDuplicates write SetAllowDuplicates;Description
AllowDuplicates is a
Boolean property that indicates if
duplicate entries for any given method are allowed in the method list. The
default value for the property is
False, and indicates that a
duplicate method entry will be rejected and an exception will be raised for
the error condition.
Changing the value in the AllowDuplicates property to False causes
the existing Items in the list to be examined for duplicate methods. When a
duplicate method is found, the Delete method is called to remove duplicate
values for any of the method in the Items property.
AllowDuplicates is used in the implementation of the Add and Insert methods, and when setting a value in the Items property.
The default value for the property was change from True to
False in version 1.3.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
