How do you format the result of a float expression to show 2 decimal places,
comma thousand separator, and currency symbol?
Many thanks
Nick
This will format a currency amount with 2 decimal places.
What currency symbol it shows, and whether it uses commas, is controlled by
locale settings. These are set globally with Control Panel/Regional
Options/Currency.
HTH,
Max.
------------------------------------
"Nick Ford" <ni...@nonesuch.screaming.net> wrote in message
news:8odu80$iq...@bornews.borland.com...
I have a TQRExpr whose Expression property is set to
SUM(qryStatement.Deposit)
Please, how do I apply a formatting function to that property?
Nick
FORMATNUMERIC(String pattern, float)
just call the format function built with string operator
See QReport help for more details about String pattern
but I can't crack this problem. I set the Expression property to the
following but it doesn't work:
FORMATNUMERIC("#,##0.00", SUM(qryStatement.Deposit))
I can only find limited help on this in my documentation so I'm struggling!
Many thanks
Nick