Try the OnGetText event to format the value any way you want.
The fields that are common can share the same event handler.

Steve

> -----Original Message-----
> From: Robert martin [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 6 August 2007 2:12 p.m.
> 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: [email protected]
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to [EMAIL PROTECTED] 
> with Subject: unsubscribe
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.476 / Virus Database: 269.11.4/936 - Release 
> Date: 4/08/2007 2:42 p.m.
>  
> 
_______________________________________________
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