[DUG] Formatting Data aware values
Stephen Barker
Steve at webdata.co.nz
Mon Aug 6 14:52:30 NZST 2007
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:rob at wildsoft.co.nz]
> 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: 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
>
> 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.
>
>
More information about the Delphi
mailing list