Change currency format in FastReport/Delphi

user2244255 picture user2244255 · Jun 7, 2013 · Viewed 14.3k times · Source

In FastReport, I want to change the format of a field that holds currency values.

Right now it uses the format %2.2n, which shows numbers as 1,234.50. I want to change this to 1.234,50 but can't seem to find a format in the Delphi documentation that would do this for me. Does a format with this purpose exist or do I have to build a whole new field using FormatFloat?

Answer

bummi picture bummi · Jun 7, 2013

You are not limited to the defaults you can use FormatStr e.g with $ ###0.00 and change DecimalSeparator and ThousandSeparator as you like.

enter image description here enter image description here