Sign in Join
FPDoc Onlineexperiment

TXMLConfig.Create constructor

Member of TXMLConfigpublicIn unit Laz2_XMLCfg

Constructor for the class instance.

Declaration

pascal
constructor Create(AOwner: TComponent); override; overload
constructor Create(const AFilename: string); overload

Arguments

AOwner

Owner of the class instance.

AFilename

File with the XML content loaded in the class instance.

Description

Create is the overloaded, overridden constructor for the class instance.

Calling Create with the AFilename argument causes the XML content in the specified Filename to be loaded into the class instance. The variant that specifies an owner simply sets the default values in ReadFlags, WriteFlags, and its internal format settings.

Alternate constructors, like CreateClean and CreateWithSource, are provided to create an empty XML configuration file or to load its content from a String variable.

See also

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