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

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

Pascal
procedure ReadSections(Strings: TStrings); override; overload;
procedure ReadSections(const Section: string; Strings: TStrings); override; overload;
C++
virtual __fastcall ReadSections(TStrings Strings);
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 object. 

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

 

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