Article View: borland.public.cppbuilder.database.ado
Article #4642Re: ADO problem
From: Mark Cashman
Date: Tue, 23 Oct 2001 11:48
Date: Tue, 23 Oct 2001 11:48
39 lines
2334 bytes
2334 bytes
Hi, Lexa! You have to create a derived component based on TADOQuery and surface the CommandTimeout property. Create a new package process to start creating the component. Use the Component | New Component menu entry to create the component. Base it on TADOQuery and store it and the project in the same directory. In the header file add __property CommandTimeout; This surfaces the protected property. Then use the Project Manager window (View | Project Manager) and right click on the project. Pick "Install" to put the component on the palette. Now you can use the component anywhere you might use a TADOQuery. If you have a form or (better) a data module with a number of TADOQuery objects that you want to have be (say) TADOQueryWithTimeout objects, you can right click on the form / data module and "View As Text". Then search and replace TADOQuery with TADOQueryWithTimeout and "View As Form". When you do this, the IDE will prompt you to change the entries in the header file, and you are safe doing a "Yes to All". I hope this helps. ------ Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at http://www.temporaldoorway.com - Original digital art, writing, music and more - C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring (Join us!) http://www.temporaldoorway.com/programming/index.htm ------
Technical Details
Message-ID:
<3BD55901.D8E879E@temporaldoorway.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3bcf20cb_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,cc0a1637113c41b9 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-10-23 04:53:05 PST Message-ID: <3BD55901.D8E879E@temporaldoorway.com> Date: Tue, 23 Oct 2001 07:48:17 -0400 From: Mark Cashman <mcashman@temporaldoorway.com> Reply-To: mcashman@temporaldoorway.com X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: ADO problem References: <3bcf20cb_1@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.14.197.193 X-Trace: dnews 1003837842 24.14.197.193 (23 Oct 2001 04:50:42 -0700) Lines: 41 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews