Float fileds + Lazaurs + Firebird

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
Mando
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 15.09.2010, 12:32

Float fileds + Lazaurs + Firebird

Post by Mando »

I've a table with a numeric (decial, float, double ...) field.
If I post a value divisible by 10 (10,20,...an so until 90), the liked TDBEdit shows 1,2,...9, in other cases, shows the actualy value 11,21,55,66...
If value has 1 or 2 decimals, the control rounds to iinteger (39,4->39 39,6->40->4).
if value >= 100 then it is showed in scientific notation, (100->1E2, 110>1,1
E2).
I know I can play with precission in the field definition, but I'm developing a Database administration utility, and I open the tables dinamically.
And I do not want to use the field display format. (TFloatField(Fields).DisplayFormat := '0.00'; )

Is there any way to solve that?

Regards
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Mando,

this times ask on the Lazarus/FPC sites. That's not a Zeos issue. I remember some threads of people who had been running into the same issue. Thought that problem was introduced between LCL 0.93 and 1.01 but don't expect me for the right revision now.

Fields with double precision are displayed right i think..

Also do we use a TDataSet-descendant of the FPC TDataSet. All settings you wnat to have here are not solvable from Zeos side.
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Mando
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 15.09.2010, 12:32

Post by Mando »

Ok, Thanks, but SQLdb has not that issue.


Regards.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Mando,

oh that's new for me. Becuse somewhere there was the thread i read in the past from. One thing you've to know. Zeos uses an Delphi & FPC compatible TDataSet. The SQLDB using the TBufferDataset. In the past we had some more trouble because our TDataSet is less maintained from the FPC side. Delphi don't show me this behavior. Maybe you can make me a little testcase again? Did you check that with FPC2.7.1?
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked