[Overview][Classes][Procedures and functions][Index] |
Adds a new value to the items and the string map with duplicate enforcement.
Source position: lookupstringlist.pas line 42
protected procedure TLookupStringList.InsertItem( |
Index: Integer; |
const S: string |
); override; |
Index |
|
Position for the new item. |
S |
|
Value for the new item. |
InsertItem is an overridden method which ensures that the internal String map and the Duplicates property are used when an item value is inserted. When Sorted contains False, the value in Duplicates determines the actions taken.
InsertItem calls the inherited method, and adds the value in S to the internal string map.
Raises an Exception when adding a duplicated value and Duplicates contains dupError. Raised with the message 'TLookupStringList.InsertItem: Duplicates are not allowed.'
Version 4.0 | Generated 2025-05-03 | Home |