System.IniFiles.TIniFile.ReadSection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ReadSection(const Section: string; Strings: TStrings); override;

C++

virtual void __fastcall ReadSection(const System::UnicodeString Section, System::Classes::TStrings* Strings);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TIniFile

Description

Reads all the key names from a specified section of an INI file into a string list.

Call ReadSection to retrieve the names of all keys within a specified section of an INI file into a string list object.

Section identifies the section from which to retrieve a list of key names. Strings specifies the TStrings descendant to hold the retrieved names. Strings can point to a TStrings descendant such as a string list (TStringList), or to a component property that is of type TStrings, such as the Items property of TListBox.

This version of ReadSection is only available if the application is compiled for Windows.

See Also