JCL Help:TWideStringList.Duplicates

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Specifies whether duplicate items can be added to the list.


Pascal

 public property Duplicates: TDuplicates;


Description

Set Duplicates to specify what should happen when an attempt is made to add duplicate strings to the list. Duplicates can have the following values:

  • dupIgnore Ignores attempts to add duplicate strings to the list.
  • dupAccept Permits duplicate strings in the list.
  • dupError Raises an exception when an attempt is made to add a string that already exists.Note that setting Duplicates when the list is not empty does not affect those strings already in the list. Therefore you should set Duplicates before adding items or clear the list first. Also note that Duplicates has no effect on a list which is not sorted.


About

Donator

Mike Lischke


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page