🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SQL Query

#1274
From: ScOe
Date: Thu, 09 Sep 2004 16:27
20 lines
1325 bytes
it should look something like this
...
TADOQuery->SQL->Clear ();
TADOQuery->SQL->Add (String);
TADOQuery->Open ();
...

...
if  (TADOQuery->Active)
    TADOQuery->Close ();
TADOQuery->SQL->Clear ();
TADOQuery->SQL->Add (String2);
TADOQuery->Params->ParamByName ("")->Value = something;
TADOQuery->Open ();
...

now for refreshing second query u should use code:
TADOQuery->Active = false;
TADOQuery->Params->ParamByName("")->Value = something_else;
TADOQuery->Active = true;
Technical Details
Message-ID: <41408477@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <413dcc40@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,e605b67116941c9
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "ScOe" <cbinders@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <413dcc40@newsgroups.borland.com>
Subject: Re: SQL Query
Date: Thu, 9 Sep 2004 18:27:12 +0200
Lines: 22
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
NNTP-Posting-Host: 193.198.130.235
Message-ID: <41408477@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1094747255 193.198.130.235 (9 Sep 2004 09:27:35 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail