[DUG] Formatting Data aware values

Myles Penlington myles at ams.co.nz
Mon Aug 6 14:16:36 NZST 2007


Maybe,
The display format has 3 sections +ve, -ve and zero,

So something like
-#0.0;#0.0;0.0;

May work.
Myles.


-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Robert martin
Sent: Monday, 6 August 2007 02:12
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Formatting Data aware values

Hi all

Heres a simple one for you.  I am setting a fields 'DisplayFormat' 
property to ###,##0.00 which works great.  However I would like to 
reverse the sing (i.e. display negative values without a sign and 
display positive fields as negatives.  Is this possible?

There are losts of fields involved and it would be great if I could just

tweak the 'DisplayFormat' string :)

Ta
Rob


-- 
Rob Martin
Software Engineer

phone +64 03 377 0495
fax   +64 03 377 0496
web www.chreos.com

Wild Software Ltd

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe

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.



More information about the Delphi mailing list