TLookupStringList.Add function
Adds the specified value to the Strings in the list.
Declaration
function Add(const S: string): Integer; overrideDescription
Add is an overridden
Integer function used to enforce
handling of
Duplicates when adding the specified value to
Strings. Add checks the values in
Sorted and Duplicates
to see if duplicates are allowed in the unsorted string list.
The return value is -1 if the value in S already exists in
the string map, and no actions are performed in the method. Otherwise, the
inherited Add method is called to store the value in S. The return value is
the position in Strings where the new value was stored.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
