RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomIniFile.ReadSections Method (TStrings)

Reads the names of all sections in an ini file into a string list.

Pascal
procedure ReadSections(Strings: TStrings); virtual; abstract; overload;
procedure ReadSections(const Section: string; Strings: TStrings); virtual; overload;
C++
virtual __fastcall ReadSections(TStrings Strings) = 0;
virtual __fastcall ReadSections(const AnsiString Section, TStrings Strings);

Call ReadSections to retrieve the names of all sections in an ini file into a string list. 

Strings specifies the string object to hold the retrieved names. Strings can point to a TStrings descendant, or to a component property, such as Items for a TListBox component. 

Section identifies the section from which to retrieve a list of key names. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!