Article View: borland.public.cppbuilder.database.ado
Article #1950Problem with ParamByName while converting from TQuery to TADOQuery
From: Andreas Wehner
Date: Mon, 29 Dec 2003 19:55
Date: Mon, 29 Dec 2003 19:55
15 lines
1588 bytes
1588 bytes
Hello,
perhaps someone can help me with the following issue. I'm converting
my project from using the BDE to using ADO. I used somtimes parameters
within my SQL-Statement and set them with the foolowing code:
pQry->ParamByName("KartenID")->AsInteger = m_nKartenID;
Compiling this with the TADOQuery I get an error 'ParamByName' is not
a member of 'TADOQuery'. How will I have to use paramters with ADO in
my code?
Thanks in advance,
Andi
Technical Details
Message-ID:
<bsq0tc$7ru2$1@ID-215342.news.uni-berlin.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!irazu.switch.ch!switch.ch!solnet.ch!solnet.ch!fu-berlin.de!uni-berlin.de!ppp-82-135-1-166.mnet-online.DE!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,4f6d3494f37c51fd,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-12-29 14:06:24 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!irazu.switch.ch!switch.ch!solnet.ch!solnet.ch!fu-berlin.de!uni-berlin.de!ppp-82-135-1-166.mnet-online.DE!not-for-mail From: "Andreas Wehner" <archimedes@techstat.de> Newsgroups: borland.public.cppbuilder.database.ado Subject: Problem with ParamByName while converting from TQuery to TADOQuery Date: Mon, 29 Dec 2003 20:55:48 +0100 Lines: 17 Message-ID: <bsq0tc$7ru2$1@ID-215342.news.uni-berlin.de> NNTP-Posting-Host: ppp-82-135-1-166.mnet-online.de (82.135.1.166) X-Trace: news.uni-berlin.de 1072727788 257986 82.135.1.166 ([215342]) 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