🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Create a TADOQuery without a TForm

#1891
From: Pat
Date: Mon, 12 Jan 2004 19:52
22 lines
1528 bytes
Hi everybody,

I'm using BCB6 and TADOComponents to quering a MS Access database.
It works fine, but I need a TForm ONLY to create a TADOQuery.
The problem is that my application doesn't need a TForm, and it should 
be TForm-indipendent.
Now I can create a TADOQuery without drag TADOQuery component on the 
TForm, with the command:

TADOQuery* Query = new TADOQuery(Form1);

(where Form1 is the TForm's name)but, how can I create a TADOComponent 
without any refernce to a TForm?

Thanks in advance for anwers.
Pat


-- 
remove AGR for reply
-- 
remove AGR for reply
Technical Details
Message-ID: <4002fb57@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,e08787740a219ba0,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-01-12 12:10:28 PST
Date: Mon, 12 Jan 2004 20:52:14 +0100
From: Pat <pat-rizioAGR@libero.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: it, en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Create a TADOQuery without a TForm
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.98.42.51
Message-ID: <4002fb57@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1073937239 62.98.42.51 (12 Jan 2004 11:53:59 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail