System.IniFiles.TIniFile.ReadSectionValues
Delphi
procedure ReadSectionValues(const Section: string; Strings: TStrings); override;
C++
virtual void __fastcall ReadSectionValues(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 the values from all keys within a section of an INI file into a string list.
Call ReadSectionValues to read the keys, and the values from all keys, within a specified section of an INI file into a string list object (TStrings descendant). The key names and values are added to the string list as strings of the form:
<keyname> = <value>
.
Section
identifies the section in the file from which to read key values.
Strings
is the string list object into which to read the values. Strings
can point to a TStrings object, or to a component property, such as Items, for a TListBox component, which is a TStrings object itself.
This version of ReadSectionValues is only available if the application is compiled for Windows.
See Also
- TetheringIniFileStorage code example (Delphi)