API:System.Classes.TStringList.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Add(const S: string): Integer; override;

C++

virtual int __fastcall Add(const System::UnicodeString S);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TStringList

Description

Adds a string at the end of the list.

System.Classes.TStringList.Add inherits from System.Classes.TStrings.Add. All content below this line refers to System.Classes.TStrings.Add.

Adds a string at the end of the list.

Call Add to add a string to the end of the list. Add returns the index of the new string.

See Also

Code Examples