Sign in Join
FPDoc Onlineexperiment

TStrings.AddPair function

Member of TStringspublicIn unit Classes

Add a name-value pair.

Declaration

pascal
function AddPair(const AName: string; const AValue: string): TStrings
 ; overload
function AddPair(const AName: string; const AValue: string; 
 AObject: TObject): TStrings; overload

Description

AddPair adds a Name=Value pair with the AName and AValue parameters, optionally with object AObject. It uses the correct NameValueSeparator character to do so.

AddPair does not test whether aName already exists, so it is possible to add duplicate names.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.