RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMemIniFile.ReadSections Method

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

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

Data read by ReadSections comes from the in-memory copy of the INI file, not the copy on disk. 

 

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