🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: try and catch

#5789
From: Mark Cashman
Date: Tue, 13 Feb 2001 02:44
30 lines
1629 bytes
Hi, Tiago!

    try
    {
        ADOConnection1->Open();

        ADOQuery1->SQL->Clear();

        ADOQuery1->SQL->Add(StringSql);

        ADOQuery1->ExecSQL();

        ADOConnection1->Close();
    }
    catch (Exception &VCLException)
    {

Application->MessageBox(VCLException->Message.c_str(),"Error",0L);
    };

may be a good start.

------
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: <3A889F6F.E549E8E5@temporaldoorway.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail
References: <Pine.LNX.4.21.0102061631390.31962-100000@firewall.telecomrio.com.br>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,cba0da57c51f3db4,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-02-12 18:48:22 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail
From: Mark Cashman <mcashman@temporaldoorway.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: try and catch
Date: Mon, 12 Feb 2001 21:44:00 -0500
Organization: Another Netscape Collabra Server User
Lines: 32
Message-ID: <3A889F6F.E549E8E5@temporaldoorway.com>
References: <Pine.LNX.4.21.0102061631390.31962-100000@firewall.telecomrio.com.br>
Reply-To: mcashman@temporaldoorway.com
NNTP-Posting-Host: 24.14.197.193
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.7 [en] (Win98; U)
X-Accept-Language: en