Article View: borland.public.cppbuilder.database.ado
Article #1219TADOQuery->Parameters->Index[]->Value
From: Stephane Baillargeon
Date: Wed, 22 Sep 2004 17:35
Date: Wed, 22 Sep 2004 17:35
11 lines
1219 bytes
1219 bytes
Hi,
What is wrong with this code? I get a list out of bounds (0) exception.
Do I have to initialize a TParameters list before and assign it to the
query?
TADOQuery *padoQry = new TADOQuery(NULL);
padoQry->SQL->Add(" SELECT * FROM Test WHERE Test_NRI = : Test ");
padoQry->Parameters->Items[0]->Value = 3683; // <---access violation
Technical Details
Message-ID:
<4151b7fb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,99111c154f0d657d,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Stephane Baillargeon" <info@solutionsgestico.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: TADOQuery->Parameters->Index[]->Value Date: Wed, 22 Sep 2004 13:35:25 -0400 Lines: 14 Organization: Solutions Gestico X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2741.2600 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2742.200 NNTP-Posting-Host: 65.93.185.252 Message-ID: <4151b7fb$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1095874555 65.93.185.252 (22 Sep 2004 10:35:55 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail