RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomIniFile.EraseSection Method

Erases an entire section of an ini file.

Pascal
procedure EraseSection(const Section: string); virtual; abstract;
C++
virtual __fastcall EraseSection(const AnsiString Section) = 0;

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. 

 

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