[Overview][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XMLCfg' (#lazutils)

TXMLConfig.Flush

Forces the XML content for the configuration file to be written to Filename.

Declaration

Source position: laz2_xmlcfg.pas line 105

public procedure TXMLConfig.Flush;

Description

Flush is a procedure which forces the XML content in Document to be written to the file specified in Filename. Flush uses the value in the Modified property to determine if the content in Document has been altered.

Flush calls the WriteXMLFile method to store Document to the required Filename. The value in Modified is set to False when the Document has been written to the local file system.

Remark: No actions are performed in the method when Modified is False, or when Filename contains an empty string ('').

Flush is used in the implementation of methods like Destroy and SetFilename.

See also

TXMLConfig.Destroy

  

Destructor for the class instance.

TXMLConfig.Document

  

XML document used for the class instance.

TXMLConfig.Filename

  

File name used to read or write the XML content in the class instance.

TXMLConfig.Modified

  

Indicates if the XML content in the class has been modified.

TXMLConfig.Filename

  

File name used to read or write the XML content in the class instance.

TXMLConfig.WriteXMLFile

  

Writes XML configuration data in Document to the specified file name.


Version 4.0 Generated 2025-05-03 Home