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.
LVL 4
jswebyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
odessaConnect With a Mentor Commented:
double click on your table component there is filed editor, if you do not find any fileds, click on add there will be all of your fileds, add them all, and now, by clicking on every filed in Properity bar you will see fileds proerities in Format properity you can specify your desired format e.g. 0.00
0
 
jswebyAuthor Commented:
Great, thanks.
0
All Courses

From novice to tech pro — start learning today.