Skip to content

TCustomIniFile.ReadSectionValues

Read names and values of a section.

Declaration

Source position: inifiles.pp line 211

public 
procedure ReadSectionValues(const Section: string; Strings: TStrings; 
                           Options: TSectionValuesOptions);  virtual
                           ;  overload; overload;

procedure ReadSectionValues(const Section: string; Strings: TStrings)
                           ;  virtual;  overload; overload;

Description

ReadSectionValues returns the keys and their values in the section Section in Strings. They are returned as Key=Value strings, one per key, so the Values property of the stringlist can be used to read the values. To retrieve just the names of the available keys, ReadSection can be used.

See also

Name Description
SectionExists Check if a section exists.
ReadSections Read the list of sections.
ReadSection Read the key names in a section.