Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 22:52

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Problem in DisplayFormat
PostPosted: 27 Nov 2022, 12:28 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
I Set Footers to:
DisplayFormat:= '###,###,###,###,###'
but show dot(.) in end of numbers


Attachments:
Bug.png
Bug.png [ 699 Bytes | Viewed 1000 times ]
Top
 Profile  
 
PostPosted: 30 Nov 2022, 07:10 
Online

Joined: 08 May 2014, 18:06
Posts: 660
Hello

I can't reproduce the problem in
EhLib 10.2 Build 10.2.035
Delphi 11.2


Attachments:
sshot-283.png
sshot-283.png [ 80.95 KiB | Viewed 980 times ]

_________________
Best regards
EhLib Support Team
Top
 Profile  
 
PostPosted: 05 Dec 2022, 11:28 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
plz check your Demos
Change DisplayFormat to ###,###,###,###


Attachments:
Error.jpg
Error.jpg [ 250.19 KiB | Viewed 960 times ]
Top
 Profile  
 
PostPosted: 06 Dec 2022, 20:29 
Online

Joined: 08 May 2014, 18:06
Posts: 660
Checked


Attachments:
sshot-286.png
sshot-286.png [ 144.66 KiB | Viewed 950 times ]

_________________
Best regards
EhLib Support Team
Top
 Profile  
 
PostPosted: 07 Dec 2022, 06:17 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
So please help me, which Property I have set wrong


Attachments:
Error1.png
Error1.png [ 107.76 KiB | Viewed 940 times ]
Top
 Profile  
 
PostPosted: 07 Dec 2022, 11:41 
Online

Joined: 08 May 2014, 18:06
Posts: 660
Hello

There is a bug in Data.FmtBcd.FormatBcd function Delphi 10.2
https://quality.embarcadero.com/browse/ ... rmatBcd%22

If you use Delphi 10.2 you need to make a fix in EhLib to get around this VCL bug.

Code:
function TCustomDBGridEh.GetFooterValue(Footer: TColumnFooterEh; Column: TColumnEh): String;
...
          if FmtStr <> '' then
            // VCL bug bypass
            //Result := FormatBcd(FmtStr, VarToBcd(v))
            Result := FormatFloat(FmtStr, BcdToDouble(VarToBcd(v)))
          else
            Result := BcdToStrF(VarToBcd(v), Format, Precision, Digits);
...

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 08 Dec 2022, 07:39 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
thank you
problem solved


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], EhLibSupport and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group