RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomIniFile.ReadFloat Method

Retrieves a float value from an ini file.

Pascal
function ReadFloat(const Section: string; const Name: string; Default: Double): Double; virtual;
C++
virtual __fastcall Double ReadFloat(const AnsiString Section, const AnsiString Name, Double Default);

Call ReadFloat to read a float 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 float value. Default is the float value to return if the: 

Section does not exist. 

Key does not exist. 

Data value for the key is not assigned. 

 

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