[DUG] DBEdit
Myles Penlington
myles at ams.co.nz
Tue Jul 29 16:48:12 NZST 2008
Yes. DisplayFormat on the static TField allows you to control how it is
displayed.
Myles.
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 29 July 2008 4:43 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] DBEdit
I have a floating point figure in a table/ClientDataSet that shows in a
DBEdit. Sometimes when it is small it reverts to scientific notation,
eg 1.7E-6 which means nothing to the users. I made a long edit box to
show the 0.0000017 etc - now if only I can make Delphi show it that way.
Is there a way to specifiy the formatting of floats? - I looked around
and didn't see anything.
Related - I also want to occasionally display an integer with a special
format in a DBEdit - eg 20080729. Yes its a date and obviously I would
like to show it as eg 29-Jul-08 or some similar date format.
Any suggestions?
(D5 Enterprise, and/or D2007)
John
Attention:
This communication is confidential and may be legally privileged. If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20080729/dcb043bf/attachment.html
More information about the Delphi
mailing list