System.Classes.TStringList.AddStrings

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddStrings(Strings: TStrings); override;

C++

virtual void __fastcall AddStrings(TStrings* Strings)/* overload */;
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings) {
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings,
                           const System::DynamicArray<System::TObject*> Objects) {
inline void __fastcall  AddStrings(const System::UnicodeString *Strings, const int Strings_High){ TStrings::AddStrings(Strings, Strings_High); }
inline void __fastcall  AddStrings(const System::UnicodeString *Strings, const int Strings_High, System::TObject* const *Objects, const int Objects_High){ TStrings::AddStrings(Strings, Strings_High, Objects, Objects_High); }

Properties

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

Description

Adds the specified strings (and objects) to the current TStrings object.

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

Adds the specified strings (and objects) to the current TStrings object.

AddStrings, with the Strings parameter of the TStrings type, appends strings and associated objects from the Strings object at the end of the string list in the current TStrings object.

AddStrings with the Strings parameter representing the array of strings, appends strings from Strings array at the end of the string list in the current TStrings object.

AddStrings, with two parameters, appends strings from Strings array at the end of the string list in the current TStrings object and associates references to objects from Objects with their strings (having the same numbers in Strings and Objects arrays). If the number of strings in Strings is not equal to the number of objects in Objects, then an exception is raised.

See Also

Code Examples