Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DELPHI: DBGrid display format won't work!

161 views
Skip to first unread message

tno...@digital.net

unread,
Jun 28, 1995, 3:00:00 AM6/28/95
to
>I have been trying to format my floating point numbers to a fixed number of
>digits. I have tried setting the DisplayFormat to ##.##, setting the
>precision to 2, neither of which seem to affect the display at all. I
>really don't want to see infinite decimals on these values! What am I
>doing wrong?
>

Set the display format for each of the underlying fields (TFields).

************************************
* The Nomad *
* tno...@digital.net *
************************************


David Steigerwald

unread,
Jun 28, 1995, 3:00:00 AM6/28/95
to
I have been trying to format my floating point numbers to a fixed number of
digits. I have tried setting the DisplayFormat to ##.##, setting the
precision to 2, neither of which seem to affect the display at all. I
really don't want to see infinite decimals on these values! What am I
doing wrong?

I can't seem to find an example that uses a display format.


David Steigerwald

unread,
Jun 29, 1995, 3:00:00 AM6/29/95
to
In article <3ss7uq$a...@ddi2.digital.net>, tno...@digital.net says...

>
>>I have been trying to format my floating point numbers to a fixed number
of
>>digits. I have tried setting the DisplayFormat to ##.##, setting the
>>precision to 2, neither of which seem to affect the display at all. I
>>really don't want to see infinite decimals on these values! What am I
>>doing wrong?
>>
>
>Set the display format for each of the underlying fields (TFields).
>

That's what I did. I double click on the TQuery, it pops up a list of
fields, I click on the one I'm interested in and type in the DisplayFormat.
I tried both ##.## and 000.##, but the result is always to show all the
decimal digits.

0 new messages