In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
User avatar
ribut
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 03.02.2017, 08:30

In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by ribut »

In ZeosLib 7.3 zero value display 00,000,000.00 in cell DbGrid
use Postgresql 10
Lazarus 2.0.6
Windows 7
You do not have the required permissions to view the files attached to this post.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1940
Joined: 17.01.2011, 14:17

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by marsupilami »

Hello,

I created a ticket on the bug tracker for this: https://sourceforge.net/p/zeoslib/tickets/408/
Best regards,

Jan
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1940
Joined: 17.01.2011, 14:17

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by marsupilami »

Hello,

Egonhugeist has added a possible fix for this. Could you please check wether the latest SVN revision still has that bug?

Best regards,

Jan
User avatar
ribut
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 03.02.2017, 08:30

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by ribut »

Thank's a lot Jan
But a few problem see pict .jpg
You do not have the required permissions to view the files attached to this post.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1940
Joined: 17.01.2011, 14:17

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by marsupilami »

Hello,

I am sorry, but I cannot get the problem. For me everything looks good?
Best regards,

Jan
User avatar
ribut
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 03.02.2017, 08:30

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by ribut »

Sorry for my incomplete explanation, I mean that zeos 7.3 does not display the value of 0 in the cell as the value of 0 displays in the cell when using zeos 7.2, it looks like the attached picture.
cell format, 0.00; -, 0.00; after the last semicolon containing spaces it should not display the value 0.00 in the figure shown when using zeos 7.2

sorry i use google translate
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1940
Joined: 17.01.2011, 14:17

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by marsupilami »

I added a new comment about this to the Bugtracker. Best regards, Jan
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1940
Joined: 17.01.2011, 14:17

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by marsupilami »

Hello, one more questions: Which datatype do you use for your fields? Are they floats? Or are they NUMERIC(x, y)? Does the problem still exist?

Best regards, Jan
User avatar
ribut
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 03.02.2017, 08:30

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by ribut »

I'am Sorry, for the late replay

Datatype numeric(22,4)

I will try again with the latest svn 7.3 version, as soon as possible

regards
User avatar
ribut
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 03.02.2017, 08:30

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by ribut »

After installing and running version svn 7.3-r6491, the problem still exists

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

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by EgonHugeist »

Hello ribut,
could you please make a small demo application, with a create-skript, some expected values etc. I'm not able to reproduce the issue on my system. I can help quickly if you can provide a template app..
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
User avatar
ribut
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 03.02.2017, 08:30

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by ribut »

Hello Michael,
This a small demo app with a database script psotgresql

Thanks a lot

regards
You do not have the required permissions to view the files attached to this post.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by EgonHugeist »

Hello ribut,

first i did not understand the proplem but testing it with delphi... your testcase works with all knonw delphi compilers we support except fpc..
There is a bug in FormatBCD() of FPC (we replaced CompareBCD(buggy), DoubleToBCD(buggy), CurrencyToBCD(slow) already )

I must admit replacing the function FormatBCD() is a huge job. It's not a Zeos a zeos issue it's a fpc bug. What do you think? What should we do?
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
User avatar
ribut
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 03.02.2017, 08:30

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by ribut »

I do not understand and can not give advice on what to do, if indeed this is a bug on fpc, I should temporarily use zeos 7.2 until the bug on fpc is resolved, but I will try to continue every release of the latest zeos 7.3 svn.

Alright, thanks a lot Michael

regards
User avatar
aehimself
Zeos Dev Team
Zeos Dev Team
Posts: 787
Joined: 18.11.2018, 17:37
Location: Hungary

Re: In Lazarus 2.0.6 DBGrid display format ,0.00;-,0.00;

Post by aehimself »

<Completely OFF>
I do ENVY those great-looking DBGrid components! I wish Embardero would invest in making their components look a little bit more... modern.
I had to write a DBGrid descendant to fix some scrolling / painting issues and it makes me so sad that a paid product is ages in front of something freely available...
</Completely OFF>
Delphi 12.1, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmariadb.dll 3.3.8
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.13
- MSSQL 2012, 2019; sybdb.dll FreeTDS_2435
- SQLite 3.45.2
Post Reply