🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.vbasic
Article #92164

wstawienie liczby zmiennoprzecinoowej do pola money / VB NET

#92164
From: Tom
Date: Sat, 15 Oct 2005 17:49
23 lines
1289 bytes
WItam

wstawiam sobie programem  VB NET do pol tabeli bazy MSSQL typu MONEY 
wartosci

fragment polecenia SQL wyglada tak:

"(convert(money, '" + cena_towaru_netto + "')), " & _


problem w tym ze jesli zmienna "cena_towaru_netto" zawiara liczbe 
zmiennoprzecinkowa to usuwany jest przecinek i czesci dziesietne

np

cena_towaru_netto = 10,55

do tabeli zostaje wstawione - 10

co robie zle, co jest tego przyczyna


z gory dziekuje za pomoc
Technical Details
Message-ID: <dirffm$g74$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Tom <lan10@wp.pl>
Newsgroups: pl.comp.lang.vbasic
Subject: wstawienie liczby zmiennoprzecinoowej do pola money / VB NET
Date: Sat, 15 Oct 2005 19:49:39 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 23
Message-ID: <dirffm$g74$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: zh237.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1129398582 16612 80.53.139.237 (15 Oct 2005 17:49:42 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Sat, 15 Oct 2005 17:49:42 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: pl, en-us, en
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit