Show: Delphi C++
Display Preferences

System.Classes.TStrings.AddPair

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddPair(const Name, Value: string): TStrings; overload;
function AddPair(const Name, Value: string; AObject: TObject): TStrings; overload;

C++

TStrings* __fastcall AddPair(const System::UnicodeString Name, const System::UnicodeString Value)/* overload */;
TStrings* __fastcall AddPair(const System::UnicodeString Name, const System::UnicodeString Value, System::TObject* AObject)/* overload */;

Properties

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

Description

Adds name-value pairs to the list of strings using fluent-style coding.

AddPair adds name-value pairs using the current NameValueSeparator. You can also use AddPair to add name-value pairs and the corresponding AObject.

TStrings returns a reference to the string list, allowing to populate the list using the fluent-style coding.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance