🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #3152

Re: Delphi probleempje ...

#3152
From: Matthijs Laan
Date: Fri, 06 Feb 2004 12:31
21 lines
1829 bytes
JVB wrote:

> Ik heb volgend probleem : De Caption van Label 1 is gevuld met
> bijvoorbeeld getal 2,53
> 
> Om de waarde van deze caption via een query in een tabel te stoppen,
> moet je 2,53 veranderen in 2.53 ( dus de komma veranderen door een
> decimale punt) Met onderstaande code lukt die niet .....
> 
> Label1.Caption :=
> FormatFloat('0.00',(Bestellingen.FieldByName('Prijs').AsFloat);
> 
> Met welke Delphi code kan ik deze waarde in een juist formaat krijgen
> ?? ( dus niet 2,53 maar 2.53 )  Dank .....
> 

DecimalSeparator := '.';

Application.UpdateFormatSettings := False;

Matthijs
Technical Details
Message-ID: <Xns94878998B8E3Ematthijsln@news.xs4all.nl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!pop-news-1.colt-telecom.nl!newsgate.cistron.nl!transit.news.xs4all.nl!newsfeed.xs4all.nl!xs4all!not-for-mail
References: <MNKUb.1244$4L7.200776@phobos.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: 107324,5b5ef3cb4e249b81
X-Google-Attributes: gid107324,public
X-Google-Thread: fcea4,5b5ef3cb4e249b81
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2004-02-06 04:31:36 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!pop-news-1.colt-telecom.nl!newsgate.cistron.nl!transit.news.xs4all.nl!newsfeed.xs4all.nl!xs4all!not-for-mail
Newsgroups: be.comp.programming,nl.comp.programmeren
Subject: Re: Delphi probleempje ...
From: Matthijs Laan <matthijsln@nospam-remove.xs4all.nl>
References: <MNKUb.1244$4L7.200776@phobos.telenet-ops.be>
Message-ID: <Xns94878998B8E3Ematthijsln@news.xs4all.nl>
User-Agent: Xnews/06.07.17
X-Face: ./Iyf!u(N\'up#=y6brL]rn2zIIdkg9_~rPFP]fx`}gz:c7gO~4:GIM+;uUU$@;mR7Asr9ROcI0[>m7XUqyw1WZl97#h2&FnqYQHg1Qcb>4ro/~i1ta~gtzQAha~R=<1XN:9?zCu}xoGWKfFc6DUph3.aa]tUvo6A#u*OQ^TN4?cA=q)V(BfV:yAVbPK_+mwZ7I<o0%#fH,u\E?atp(WF
Date: 06 Feb 2004 12:31:34 GMT
Lines: 21
NNTP-Posting-Date: 06 Feb 2004 13:31:34 CET
NNTP-Posting-Host: 80.126.238.157
X-Trace: 1076070694 news.xs4all.nl 324 [::ffff:80.126.238.157]:37830
X-Complaints-To: abuse@xs4all.nl