RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegIniFile.ReadString Method

Retrieves a string value from a specified data value (Ident) associated with a key (Section).

Pascal
function ReadString(const Section: string; const Ident: string; const Default: string): string;
C++
__fastcall AnsiString ReadString(const AnsiString Section, const AnsiString Ident, const AnsiString Default);

Call ReadString to retrieve a string value from a specified data value associated with a key. 

Section is a string that identifies the key from which to retrieve a data value. Ident is a string that identifies the name of the data value to return. Default is a string value to use if there is no key corresponding to Section or no data value corresponding to Ident.

Note: This function overrides the ReadString function of TRegistry, from which TRegIniFile is derived. To call the ReadString function of TRegistry instead of this function, cast the call to ReadString as TRegistry.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!