🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #4649

Problems with the ADOStoreProc parameters.

#4649
From: Irongizon
Date: Wed, 24 Oct 2001 11:52
25 lines
1651 bytes
Hi.

I'm using ADO components in a  C++ Builder 5 application. I'm using a
MSAccess 2000 database in which I have some parametered queries. With an
TADOStoreProc I try to use one of this parametered query, in this way:

for (i=0; i<CRCIDBLK_MAXNUMERO; i++){

      MyStoredProc->Close();
      MyStoredProc->Parameters->ParamByName("param1")->Value = i;
      MyStoredProc->Open();

      // Process of Data
      .....
}

What happend is that the parameter value is not updated for each call,
although I close the StoreProc and it always returns the same result. It
always takes the value that is given in the first time (i=0).
I would be grateful whether somebody Knows how to do the value of the param
was updated.

Regards and Thanks in advanced.

Raul.
Technical Details
Message-ID: <3bd6ab8c$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!newsgate.cistron.nl!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,2e97fc0938f037f6,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-10-24 05:09:38 PST
From: "Irongizon" <grangizon@lycos.es>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Problems with the ADOStoreProc parameters.
Date: Wed, 24 Oct 2001 13:52:57 +0200
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 195.55.170.90
Message-ID: <3bd6ab8c$1_1@dnews>
X-Trace: dnews 1003924364 195.55.170.90 (24 Oct 2001 04:52:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!newsgate.cistron.nl!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews