Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 29 Jan 2023, 15:57

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: 74
I Set Footers to:
DisplayFormat:= '###,###,###,###,###'
but show dot(.) in end of numbers


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

Joined: 08 May 2014, 18:06
Posts: 587
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 152 times ]

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

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


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

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


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

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

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


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

Joined: 08 May 2014, 18:06
Posts: 587
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: 74
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: No registered users and 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Group