RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIniFile.EraseSection Method

Erases an entire section of an INI file.

Pascal
procedure EraseSection(const Section: string); override;
C++
virtual __fastcall EraseSection(const AnsiString Section);

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. 

This version of EraseSection is only available if the application is compiled for Windows. On Linux, EraseSection is inherited from TMemIniFile

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!