Thread View: borland.public.delphi.database.win32
2 messages
2 total messages
Started by herman
Tue, 20 Nov 2007 16:41
DisplayFormat doesn't give wanted result
Author: herman
Date: Tue, 20 Nov 2007 16:41
Date: Tue, 20 Nov 2007 16:41
14 lines
1228 bytes
1228 bytes
Hello, I have a TDBEdit, TDataSource and a TClientDataSet. Fields[7] is a price field with the currency property set to false and the DisplayFormat = '#,##0.00'. If I have 12 in the field I expect 12.00 in my DBEdit box but it's not. Placing somewhere a breakpoint and exploring the values, all are right. Forcing it with TNumericField(Fields[7]).DisplayFormat := '#,##0.00' does not work Any suggestions? Thanks in advance Herman
Re: DisplayFormat doesn't give wanted result
Author: Zoren Lendry
Date: Tue, 20 Nov 2007 18:18
Date: Tue, 20 Nov 2007 18:18
10 lines
1392 bytes
1392 bytes
herman wrote: > Fields[7] is a price field with the currency property set to false and > the DisplayFormat = '#,##0.00'. > If I have 12 in the field I expect 12.00 in my DBEdit box but it's not. > Forcing it with > TNumericField(Fields[7]).DisplayFormat := '#,##0.00' does not work Try 0.00, Loren
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads