🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #3386

Re: Formato currency

#3386
From: Maurizio Borrelli
Date: Tue, 09 Jul 2002 16:53
31 lines
2216 bytes
> "Webby" [...]:
> sto studiando le stringhe di formato predefinite ed ho un dubbio riguardo
> il
> formato currency.
> Nell'esempio sotto :
> Private Sub cmd1_Click()
> Dim cal As Double
> cal = (170 / 25) ^ 8
> Label1.Caption = "Il calcolo � di L. " + Format(cal, "currency")
> il risultato di Label1.Caption dovrebbe venire un numero con due cifre a
> destra della virgola decimale, ed invece il programma mi da sempre cifra
> tonda senza decimali(4571632 invece di 4571632,40)
> Come mai il libro spiega in un modo ed il risultato � un altro?

    Il libro? Quale libro? La guida dice:

Currency Visualizza il numero con il separatore delle migliaia, se
necessario; visualizza due cifre a destra del separatore decimale. Si noti
che l'output � basato sulle impostazioni internazionali del sistema.

    Nota il "Si noti..."!

    E usa "&" al posto di "+" per la concatenazione.

--
Ciao.
Maurizio
--------
?SPQR(C)
 X
--------
Technical Details
Message-ID: <agf3vt$khe$1@newsreader.mailgate.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!mtu.ru!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!news.mailgate.org!newsreader.mailgate.org!not-for-mail
References: <agenvs$iko$1@lacerta.tiscalinet.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,7728bb68943fdbcc
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2002-07-09 09:46:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!mtu.ru!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!news.mailgate.org!newsreader.mailgate.org!not-for-mail
From: "Maurizio Borrelli" <maurizio.borrelli@freepass.it>
Newsgroups: free.it.visual-basic
Subject: Re: Formato currency
Date: Tue, 9 Jul 2002 18:53:10 +0200
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Lines: 33
Sender: maurizio.borrelli@freepass.it
Message-ID: <agf3vt$khe$1@newsreader.mailgate.org>
References: <agenvs$iko$1@lacerta.tiscalinet.it>
NNTP-Posting-Host: ip180-31.dialup.edisontel.com
X-Trace: newsreader.mailgate.org 1026233149 21038 62.94.131.181 (9 Jul 2002 16:45:49 GMT)
X-Complaints-To: abuse@mailgate.org
NNTP-Posting-Date: Tue, 9 Jul 2002 16:45:49 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000