help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TStringList.Add

Implements the TStrings.Add function.

Declaration

Source position: classesh.inc line 574

public function TStringList.Add(

  const S: String

):Integer; override;

Description

Add will add S to the list. If the list is sorted and the string S is already present in the list and TStringList.Duplicates is dupError then an EStringListError exception is raised. If Duplicates is set to dupIgnore then 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.

Errors

If the list is sorted and the string S is already present in the list and TStringList.Duplicates is dupError then an EStringListError exception is raised.

See also

TStringList.Insert

  

Overrides the TStrings.Insert method.

TStringList.Duplicates

  

Describes the behaviour of a sorted list with respect to duplicate strings.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505