System.Classes.TStrings.AddStrings
Delphi
procedure AddStrings(Strings: TStrings); overload; virtual;
procedure AddStrings(const Strings: array of string); overload;
procedure AddStrings(const Strings: array of string; const Objects: array of TObject); overload;
C++
virtual void __fastcall AddStrings(TStrings* Strings)/* overload */;
void __fastcall AddStrings(const System::UnicodeString *Strings, const int Strings_High);
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings) {
void __fastcall AddStrings(const System::UnicodeString *Strings, const int Strings_High,
System::TObject* const *Objects, const int Objects_High);
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings,
const System::DynamicArray<System::TObject*> Objects) {
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
- System.Classes.TStrings.Add
- System.Classes.TStrings.AddObject
- System.Classes.TStrings.Assign
- System.Classes.TStrings.Count
- System.Classes.TStrings.Objects