TStringList.Add function
Implements the Add function.
Declaration
function Add(const S: string): Integer; overrideDescription
Add will add
S to the list. If the list is sorted and
the string
S is already present in the list and
Duplicates is
dupError then an
EStringListError exception is raised. If
Duplicates is
set to
dupIgnore then the return value is the index of the
previous entry.
If the list is sorted, new strings will not necessarily be added to the end of the list, rather they will be inserted at their alphabetical position.
Errors
If the list is sorted and the string
S is already present in the list and
Duplicates is
dupError then an
EStringListError exception is raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
