API:System.IniFiles.TIniFile.ReadSections
Delphi
procedure ReadSections(Strings: TStrings); override;
C++
virtual void __fastcall ReadSections(System::Classes::TStrings* Strings)/* overload */;
inline void __fastcall ReadSections(const System::UnicodeString Section, System::Classes::TStrings* Strings){ TCustomIniFile::ReadSections(Section, Strings); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.IniFiles.pas System.IniFiles.hpp |
System.IniFiles | TIniFile |
Description
Reads the names of all sections in an ini file into a string list.
System.IniFiles.TIniFile.ReadSections inherits from System.IniFiles.TCustomIniFile.ReadSections. All content below this line refers to System.IniFiles.TCustomIniFile.ReadSections.
Reads the names of all sections in an ini file into a string list.
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.
ReadSections retrieves the names of all subsections.