System.Classes.TStrings.AddStrings

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddStrings(Strings: TStrings); overload; virtual;
procedure AddStrings(const Strings: TArray<string>); overload;
procedure AddStrings(const Strings: TArray<string>; const Objects: TArray<TObject>); overload;

C++

virtual void __fastcall AddStrings(TStrings* Strings)/* overload */;
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings)/* overload */;
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings, const System::DynamicArray<System::TObject*> Objects)/* overload */;

Properties

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

Description

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