🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Errore di funzione Round con ADO in una Select.

#2903
From: Vito
Date: Mon, 30 Dec 2002 14:30
50 lines
2129 bytes
Ciao,

la sparo: non � che la funzione ROUND voglia il punto e virgola anzich� la
virgola? Cio�:

round(nome_campo;2)

Ciao

Vito


"Silvio" <apocalipse@infinito.it> ha scritto nel messaggio
news:QDYP9.8122$%p6.631910@news.edisontel.com...
> Salve,
> chiedo lumi su un problema:
> � possibile ricavare in una select con ado, la funzione round su un numero
?
> In pratica ho bisogno di ottenere dinamicamente l' arrotondamento e non il
> valore intero (int) di un valore.
> Scrivendo il seguente codice, mi da eerore di SQL:
>
>
>   Dim connAS As New ADODB.Connection
>   Dim cmdAS As New ADODB.Command
>   Dim rsAS As New ADODB.Recordset
>
>
>   connAS.Open "Provider=IBMDA400;Data Source=S442B51C;", "QSECOFR",
"PROVA"
>   Set cmdAS.ActiveConnection = connAS
>
>   cmdAS.CommandText = "SELECT round(DPREZZ,2) FROM PRFGE0004.MFFBDE00"
>
>
>   rsAS.CursorLocation = adUseServer
>   rsAS.Open cmdAS, , adOpenStatic, adLockReadOnly
>   rsAS.MoveFirst
>
>
> Mi domando: "Come mai non riesco ad effettuare il round ?"
>
> Grazie, saluti.
>
>
>
>
>
>
>
Technical Details
Message-ID: <eMYP9.63932$Ou4.2083041@twister2.libero.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
References: <QDYP9.8122$%p6.631910@news.edisontel.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,b8c4b424f1670117
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2002-12-30 06:31:20 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
From: "Vito" <vito_f@libero.it>
Newsgroups: free.it.visual-basic
References: <QDYP9.8122$%p6.631910@news.edisontel.com>
Subject: Re: Errore di funzione Round con ADO in una Select.
Lines: 52
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <eMYP9.63932$Ou4.2083041@twister2.libero.it>
Date: Mon, 30 Dec 2002 14:30:34 GMT
NNTP-Posting-Host: 62.98.93.254
X-Complaints-To: abuse@inwind.it
X-Trace: twister2.libero.it 1041258634 62.98.93.254 (Mon, 30 Dec 2002 15:30:34 MET)
NNTP-Posting-Date: Mon, 30 Dec 2002 15:30:34 MET
Organization: [Infostrada]