Article View: borland.public.cppbuilder.database.ado
Article #1890Create a TADOQuery without a form
From: Pat
Date: Mon, 12 Jan 2004 19:35
Date: Mon, 12 Jan 2004 19:35
20 lines
1500 bytes
1500 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
Technical Details
Message-ID:
<4002f791@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-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,53ac6c787bbd823c,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-12 11:40:26 PST Date: Mon, 12 Jan 2004 20:35:56 +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 form Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.98.42.51 Message-ID: <4002f791@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073936273 62.98.42.51 (12 Jan 2004 11:37:53 -0700) Lines: 21 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