System.IniFiles.TCustomIniFile.ReadBool

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
function public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TCustomIniFile

Description

Retrieves a Boolean value from an ini file.

Call ReadBool to read a Boolean value from an ini file. Section identifies the section in the file that contains the desired key. Ident is the name of the key from which to retrieve the Boolean value. Default is the Boolean value to return if the:

Section does not exist.

Key does not exist.

Data value for the key is not assigned.

See Also

Code Examples