Re: How format float in TDBText using ADO??



(yourADODataset.FieldByName('yourFieldName') as TNumericField).DisplayFormat
:= ',0.00';
The same property (DisplayFormat) you may define in Object Inspector for
your field

--
With best regards, Mike Shkolnik
EMail: mshkolnik@xxxxxxxxxxxxx
http://www.scalabium.com

"ZEN" <projetos@xxxxxxxxxxxxxxxxx> wrote in message
news:4337f784@xxxxxxxxxxxxxxxxxxxxxxxxx
> I want show 1234 as 1,234.00
>
> Its desireable respect the control panel settings.
> Seems so simple!
>
> I already look for this matter on the internet but.....
>
>
> Thanks
>
> Heraldo
>
>


.



Relevant Pages

  • Re: Field DisplayFormat
    ... Add the next code in AfterOpen event for your TClientDataset: ... With best regards, Mike Shkolnik ... > How do I set the DisplayFormat of the Date? ...
    (borland.public.delphi.database.ado)
  • Re: Scalabium?
    ... PS: better to post such messages to our newsgroups or mailing list:-) ... With best regards, Mike Shkolnik ... >> With best regards, Mike Shkolnik ... >>> Ole ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: looking for a normal enhanced grid control !
    ... For standard TStringGrid I personally draw everything what I need in custom ... With best regards, Mike Shkolnik ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: TDbPathImage
    ... Just use the OnGetText/OnSetText events for TField and load/save image from ... With best regards, Mike Shkolnik ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: DB Grids choice
    ... But anyway check our freeware TSMDBGrid: ... With best regards, Mike Shkolnik ... > especially on data navigation and DB event management. ...
    (borland.public.delphi.thirdpartytools.general)