Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 1 of 1 total
Thread Money style
Tue, Jan 25 2022 5:27 PMPermanent Link

erickengelke

Avatar

A lot of us are using TGrids and Labels to display money value, which is supposed to look like  xxx,xxx,xxx.yy.  format, depending on your currency and decimal separators (which depend on your langauge/regional settings)

EWB natively supports integers, floats, and strings, but not money.  But probably a majority of us use it for money at some point.

Probably like others, I have written a FloatToMoney() function to convert floating point to money, and display the string.  But this is not ideal because it's extra code, and sorting doesn't work right.  And obviously Labels and Edits would have to support it too.  

So I'd like a money display format to be added to the list of dataset column types, and have it handled correctly in the system.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Image