IC.Path:=MyInifile.ini'; //IC is a TElInifile with the default values of the component
If Not IC.Load Then
ShowMessage('IC load fail');
If Not IC.ReadDouble('MainKey','Var1',0,x1) Then
ShowMessage('Loading Var1 fail')
Else
ShowMessage(FloatToStr(x1));
If Not IC.ReadDouble('MainKey','Var2',0,x2) Then
ShowMessage('Loading Var2 fail')
Else
ShowMessage(FloatToStr(x2));
I get in this configuration the two reading process wrong. If I suppress the last two digits (45) of the doubles, the process is right and if I suppress only the las digit (5), the first is right and the second is wrong.
The reading process fail also with for example this value 9.9E-14. Sure the 14 digits is the main problem.
How can I modify the source of the component to get a right reading process.
Thank you for your help.
Gerard Esposito
Comments