RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegIniFile.ReadInteger Method

Retrieves an integer value from a specified data value (Ident) associated with a key (Section).

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

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

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

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!