Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with ReadFloat

Status
Not open for further replies.

jnecciai

Programmer
Mar 18, 2002
17
0
0
US
I'm using the TIniFile ReadFloat mehtod. (I've used this many times before). I actually have the same call in two different projects. The first project works, the other project fails on every ReadFloat call. (The other Read... methods work fine). (They are reading the same ini file).

Here is the error I get: Exception EConvertError with message "0' is not a valid floating point value'.

I checked to see that the project options were the same. They are. Both projects are Packages. I thought it might be byte alignment or something, but both projects are set up the same.
 
Hi, it appears that you might have entered the letter O instead of the number 0 (zero). The is a very common boo boo I have done it a number of time myself. Rod
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top