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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DisplayFormat 1

Status
Not open for further replies.

edwinjs

Programmer
Jun 16, 2002
22
0
0
AE
I have a problem with DisplayFormat in Delphi7.

I have set the DisplayFormat for a Numeric Field to #,###,##0.00. if i input 100.15 it becomes 100.00.
I wonder why. I am using ClientDataset with SQL 2000 backend.

 
My guess would be your DataType for the field in the FieldDefs of the ClientDataSet - check that it is a ftFloat. There is nothing wrong with your display format.

Robertio
Alias: Robbie Calder
Software Developer
urc@walkermartyn.co.uk
 
Datatype in SQL Server is "Money" and i am using DBExpress with DatasetProvider and ClientDataset. In clientdataset, it is "TFMTBCDField".
 
The problem was with Infopower TwwDBEdit Component. I changed it to TDBEdit and everything works fine.

Lessons Learnt : Use 3rd party tools only when required.

Sorry !!! I assumed TwwDBEdit = TDBEdit

Thanks for the help anyway.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top