Yes. DisplayFormat on the static TField allows you to control how it is
displayed.

Myles.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
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.
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to