🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #854

Calling a TQuery component

#854
From: Edward Ascencio
Date: Fri, 26 Jan 2001 22:24
49 lines
2318 bytes
Hi, Guys

     I was wondering I'm writting a application using C++Builder 3,  In
serval forms I DBComboBox acting as drop list components that generate
querys from a Oracle server. And since very limited documentation call
referencing TQuery within a DataModule I was wondering you any advice.

For Example under my product page I have a DBComboBox that under its events
properities on DropDown
I want call a Query Component thats within a DataModule and execute its SQL
Statement.

How ?
I know I can write a AnsiString Statement
Would it be something like
TDataModule->Query2->SQL(TString);

//--------------------------------------------------------------------------
-

void __fastcall TForm1::DBLookupComboBox1DropDown(TObject *Sender)
{


}
//--------------------------------------------------------------------------
-

Another thing how can I search all Header,Resource files, *.cpp, and object
files for any reference to elements that no longer exisits in the source
file.
Or how can rebuild all source files after having deleted a line of code from
one of the source files. It tends to reference a external call to a object



Last item on my list how can I bypass using a TQuery component and just
write some thing in straight c++ to access and manage data quries from a
database.
And when a generating a quries   with TQuery how can I take its output from
the sql server and display it on a dbgrid component.



Sincerely,



Edward A.
Technical Details
Message-ID: <3a71f8c1$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!209.142.56.217

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,27db950cb45f8381,start
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-01-26 14:40:43 PST
Reply-To: "Edward Ascencio" <cedwarda@altavista.com>
From: "Edward Ascencio" <cedwarda@altavista.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier
Subject: Calling a TQuery component 
Date: Fri, 26 Jan 2001 14:24:42 -0800
Lines: 58
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 209.142.56.217
Message-ID: <3a71f8c1$1_2@dnews>
X-Trace: 26 Jan 2001 14:22:57 -0800, 209.142.56.217
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!209.142.56.217