API:FireDAC.Stan.Util.TFDIniFile.EraseSection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EraseSection(const Section: string); override;

C++

virtual void __fastcall EraseSection(const System::UnicodeString Section);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Stan.Util.pas
FireDAC.Stan.Util.hpp
FireDAC.Stan.Util TFDIniFile

Description

Erases an entire section of the INI file.

FireDAC.Stan.Util.TFDIniFile.EraseSection inherits from System.IniFiles.TMemIniFile.EraseSection. All content below this line refers to System.IniFiles.TMemIniFile.EraseSection.

Erases an entire section of the INI file.

Call EraseSection to remove a section, all its keys, and their data values from an INI file. Section identifies the INI file section to remove. If a section cannot be removed, an exception is raised.

EraseSection only affects the in-memory copy of the INI file, not the copy on disk. The change is not written to disk until you call UpdateFile.

See Also