RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegIniFile.ReadSection Method

Retrieves the names of all data values associated with a key, and stores the names in a TStrings object.

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

Call ReadSection to retrieve the names of all data values associated with a key into a TStrings object. 

Section is a string identifying the key for which to retrieve data-value names. 

Strings specifies the string object to hold the retrieved names. Strings can point to a TStrings object such as a string list, or to a component property, such as Items for a TListBox component, that is a TStrings object itself. 

 

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