[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Implements the TStrings.Addfunction.
Source position: classesh.inc line 566
public function TStringList.Add( |
const S: String |
):Integer; override; |
Addwill add Sto the list. If the list is sorted and the string Sis already present in the list and TStringList.Duplicatesis dupErrorthen an EStringListErrorexception is raised. If Duplicatesis set to dupIgnorethen the return value is underfined.
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.
If the list is sorted and the string Sis already present in the list and TStringList.Duplicatesis dupErrorthen an EStringListErrorexception is raised.
|
Overrides the TStrings.Insertmethod. |
|
|
Describes the behaviour of a sorted list with respect to duplicate strings. |