Link to home
Start Free TrialLog in
Avatar of Jason Sweby
Jason SwebyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

DBEdit: formatting data

I have several DBEdit controls which display data from an underlying Access table. The problem is that the DBEdit truncates the decimal places, which I MUST have 2 of.

For example,

20.00 becomes 20
and
20.50 becomes 20.5

It is essential that I have the decimal placesbut cannot use the currency type. In Access, the fields are set to Double, Standard, 2 decimal places.

Delphi help mentions masks with reference to the DBEdit, but I cannot see how to do this.
ASKER CERTIFIED SOLUTION
Avatar of odessa
odessa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jason Sweby

ASKER

Great, thanks.