Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting decimals in TDBEdit controls

Status
Not open for further replies.

DJJudas

Programmer
Feb 15, 2004
1
GB
I am using an Access database with a Delphi frontend for a system i am designing. The field in the access database is a currency type, ie has 2 decimal places after the point. The DBEdit control that i have linked to it in delphi only displays one decimal place (ie instead of £7.50 it shows 7.5). What can I do to change this?

Regards
Judas
 
TNumericField.DisplayFormat

Set in Object inspector if using persistent fields, otherwise its some code in the TDataset.AfterOpen.

Have fun
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top