Re: Currency Fields In Dynamic ADO Queries
- From: "John Herbster" <herb-sci1_at_sbcglobal.net>
- Date: Fri, 24 Mar 2006 09:56:14 -0600
"eddela" <llcrcaero@xxxxxxxxx> wrote
... currency field(Cost) is displayed in the DBGrid,
in the BCD format, instead of currency. ...
What do you mean by "displayed in the BCD format"?
What is that?
I have never before heard of "BCD format" display.
BCD is the "Binary Coded Decimal" format which displays asa Float with no $ in front of it. So, instead of the currency value
of $10.00, the BCD format is 10.00.
So specify the format you want in the field's DisplayFormat.
MyTableMyField.DisplayFormat := '$#0.00';
This is an excerpt from the Delphi online help for
"TBCDField.TBCDField converts the data from a BCD value
to a Currency value when it fetches the data from the database
table, and converts it from a Currency value to a binary-coded
decimal value when it posts the data."
True, but this does not pertain to display format. Rgds, JohnH
.
- References:
- Re: Currency Fields In Dynamic ADO Queries
- From: John Herbster
- Re: Currency Fields In Dynamic ADO Queries
- Prev by Date: Re: ExecuteOptions := [eoExecuteNoRecords];
- Next by Date: Re: TADOQuery and assign null value to the parameter
- Previous by thread: Re: Currency Fields In Dynamic ADO Queries
- Next by thread: Re: Currency Fields In Dynamic ADO Queries
- Index(es):
Relevant Pages
|