RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMemIniFile.ReadSectionValues Method

Reads the values from all keys within a section of an INI file into a string list.

Pascal
procedure ReadSectionValues(const Section: string; Strings: TStrings); override;
C++
virtual __fastcall ReadSectionValues(const AnsiString Section, TStrings Strings);

Call ReadSectionValues to read the values from all keys within a specified section of an INI file into a string list object. The values are added to the string list as strings of the form KeyName=ValueName. 

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 descendant, or to a component property, such as Items for a TListBox component.  

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

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!