🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Aiutino per favore

#1130
From: William
Date: Mon, 18 Oct 2004 19:55
19 lines
1695 bytes
> Non capisco come mail in Label4.Caption non mi spuntano i decimali.
> Negli altri label con le cifre in euro ci sono i decimali, ma nel label4
che
> � una semplice somma, spunta solo il numero intero. Come mai?
> Spero qualcuno mi aiuti a risolvere questo problema.
> E poi se non chiedo troppo come faccio a fare spuntare solo 2 cifre dopo
la
> virgola? Per i centsimi?
> Certe volte mi spuntano cifre anche con 4 cifre decimali.
> Questi 2 problemini mi stanno scoraggiando, spero mi aiutate
> Grazie in anticipo a tutti coloro mi daranno una mano
> Ciao e buona programmazione
>
>

Per avere i decimali arrotondati alla seonda cifra decimale puoi scrivere
cos�:
Label4.Caption = CStr(Round(var1+var2+var3,2))
Technical Details
Message-ID: <GcVcd.159521$35.7802953@news4.tin.it>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail
References: <5HKcd.46310$H11.1620580@twister1.libero.it>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,bcfeea5931d06bee
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail
From: "William" <willy78@libero.it>
Newsgroups: free.it.visual-basic
References: <5HKcd.46310$H11.1620580@twister1.libero.it>
Subject: Re: Aiutino per favore
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <GcVcd.159521$35.7802953@news4.tin.it>
Date: Mon, 18 Oct 2004 19:55:18 GMT
NNTP-Posting-Host: 80.182.36.113
X-Complaints-To: "Please send abuse reports to abuse@tin.it and technical notifications to newsmaster@tin.it"
X-Trace: news4.tin.it 1098129318 80.182.36.113 (Mon, 18 Oct 2004 21:55:18 MET DST)
NNTP-Posting-Date: Mon, 18 Oct 2004 21:55:18 MET DST
Organization: TIN