RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegIniFile.ReadBool Method

Retrieves a Boolean value from a specified data value associated with a key.

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

Call ReadBool to retrieve a Boolean 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 Boolean value to use if there is no key corresponding to Section or no data value corresponding to Ident.

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

 

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