System.Win.Registry.TRegistryIniFile.ReadInteger

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadInteger(const Section, Ident: string; Default: Integer): Integer; override;

C++

virtual int __fastcall ReadInteger(const System::UnicodeString Section, const System::UnicodeString Ident, int Default);

Properties

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

Description

Retrieves an integer value from an INI file.

Call ReadInteger to read an integer 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 value. Default is the integer 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