MySQL Format() results as currency, yields strange results,

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
mparak
Senior Boarder
Senior Boarder
Posts: 81
Joined: 12.09.2005, 06:51
Location: Durban South Africa
Contact:

MySQL Format() results as currency, yields strange results,

Post by mparak »

Dear Friends,

I often need to display a MySQL calculated field in a DbGrid and find that if I use the Format(calculated_field, decimal_places) thingy I get the results as a string and often the thousand separator of comma causes the thousands to be lost.
I solve this by implicitly setting the display property of the columns, and set the thousand separator to something other than a comma, but hope that there is a more graceful solution.


Warmest Regards

M.Parak







http://www.cad.co.za/index.html
mparak
Senior Boarder
Senior Boarder
Posts: 81
Joined: 12.09.2005, 06:51
Location: Durban South Africa
Contact:

Post by mparak »

In answer to a question that was posed by myself a long time ago, I have found that the round(field,n) has much more pleasant results.
Mohammed Parak
CAD RETAIL
Durban South Africa
http://www.cad.co.za
Post Reply