System.Win.Registry.TRegIniFile.ReadBool

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadBool(const Section, Ident: string; Default: Boolean): Boolean;

C++

HIDESBASE bool __fastcall ReadBool(const System::UnicodeString Section, const System::UnicodeString Ident, bool Default);

Properties

Type Visibility Source Unit Parent
function public
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry TRegIniFile

Description

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

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.

See Also