Article View: borland.public.cppbuilder.database.ado
Article #1405proper form for a try/catch on an ado object
From: Steve
Date: Tue, 13 Jul 2004 16:45
Date: Tue, 13 Jul 2004 16:45
12 lines
1240 bytes
1240 bytes
I am instantiating tadodatasets dynamically, not using the vcl stuff to drop on my form. What is the proper way to create the object and handle errors and releasing memory for it? I am doing them like this. TADODataSet *rs = new TADODataSet(NULL); rs->Connection = frmFrame->adoConnection; rs->Connection->LoginPrompt = false; rs->CommandText = sql; rs->Open(); rs->Close(); delete rs; I just can't seem to find any example code. Thanks in advance.
Technical Details
Message-ID:
<40f4119e$1@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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,7efbd26a8e32ebe9,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Steve" <sportock@hotmail.com> Sender: "Steve" <sportock@hotmail.com> Reply-To: "Steve" <sportock@hotmail.com> Subject: proper form for a try/catch on an ado object Newsgroups: borland.public.cppbuilder.database.ado X-User-Info: 24.178.50.100 NNTP-Posting-Host: 207.105.83.66 Message-ID: <40f4119e$1@newsgroups.borland.com> Date: 13 Jul 2004 09:45:18 -0700 X-Trace: newsgroups.borland.com 1089737118 207.105.83.66 (13 Jul 2004 09:45:18 -0700) Lines: 13 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