[DUG] Formatting Data aware values
Robert martin
rob at wildsoft.co.nz
Mon Aug 6 15:04:27 NZST 2007
That works perfectly :)
Thanks Myles
Rob Martin
Software Engineer
phone +64 03 377 0495
fax +64 03 377 0496
web www.chreos.com
Wild Software Ltd
Myles Penlington wrote:
> 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
>
>
>
More information about the Delphi
mailing list