RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomIniFile.ReadInteger Method

Retrieves an integer value from an ini file.

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

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. 

 

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