Article View: borland.public.cppbuilder.database.ado
Article #4135Stack Overflow problem when Creating Recordset through ADOConnection.
From: Johnnie Lann
Date: Sat, 23 Mar 2002 15:05
Date: Sat, 23 Mar 2002 15:05
43 lines
1940 bytes
1940 bytes
hi all
as title I create recordset through TADOConnection.
No Error, Warning.
But wow there is Stack overflow problem.
problem code is following this.
objConn->CursorLocation = clUseClient;
objRsTitles->Recordset = objConn->Execute(WideString("select * from
titles"),
cmdText,
TExecuteOptions() <<
eoAsyncExecute);
while (!objRsTitles->Eof)
{
Ls->Items->Add(objRsTitles->FieldByName("title_id")->AsString);
objRsTitles->Next();
}
I don't know what problem is. help me.
And then
if above code is
while (!objRsTitles->Recordset->Eof)
{
Ls->Items->Add(objRsTitles->FieldByName("title_id")->AsString);
// I Suppose this is wrong. but How do I retrieve data of field and
append it in listbox?
objRsTitles->Recordset->MoveNext();
}
,
How Ls->Items->Add(objRsTitles->FieldByName("title_id")->AsString); does
change?
Nice Programming and All Happiness~
Technical Details
Message-ID:
<3c9c9a99_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,56f076f7e286e9cc,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-03-23 07:11:58 PST From: "Johnnie Lann" <mortalpain@mortalpain.net> Newsgroups: borland.public.cppbuilder.database.ado Subject: Stack Overflow problem when Creating Recordset through ADOConnection. Date: Sun, 24 Mar 2002 00:05:37 +0900 Lines: 45 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: 211.49.82.224 Message-ID: <3c9c9a99_2@dnews> X-Trace: dnews 1016896153 211.49.82.224 (23 Mar 2002 07:09:13 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews