Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Floats in TDBGrid (https://www.delphipraxis.net/115940-floats-tdbgrid.html)

haentschman 21. Jun 2008 10:53

Re: Floats in TDBGrid
 
Hätte noch eine Variante anzubieten... :-D

im Quelltext nach Öffnen der Query:
Delphi-Quellcode:
TNumericfield(Query.FieldByName('blabla')).DisplayFormat:='0.00';
:hi:

DeddyH 21. Jun 2008 12:01

Re: Floats in TDBGrid
 
Das hatte Sharky doch schon geschrieben, oder hab ich einen Unterschied übersehen? :gruebel:

haentschman 21. Jun 2008 12:33

Re: Floats in TDBGrid
 
Zitat:

TNumericfield(Query.FieldByName('blabla')).Display Format:='0.00';
...hat ein paar Buchstaben weniger als
Zitat:

(DataSet.FieldByName('preiss') as TFloatField).DisplayFormat := '0.00';
:mrgreen:


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:01 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz