🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Catching a primary key error

#5496
From: Roger Cormier
Date: Mon, 23 Apr 2001 16:04
23 lines
1640 bytes
That seems like it'll work...  Is there a way for me to tell if one of those
errors that it would catch there would be a primary key error though, so I
can display my own custom message to the user for this error?
Thanks...

Roger Cormier

"Mark Cashman" <mcashman@temporaldoorway.com> wrote in message
news:3AE0E500.82AA18E3@temporaldoorway.com...
> Hi, Roger!
>
> Have you tried the OnPostError event of TADOQuery?
>
> ------
> 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: <3ae451ef$1_1@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3ae07e78$1_1@dnews> <3AE0E500.82AA18E3@temporaldoorway.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,eaee8c0cebea83d2
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-04-23 09:06:06 PST
From: "Roger Cormier" <rogernc@nbnet.nb.ca>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3ae07e78$1_1@dnews> <3AE0E500.82AA18E3@temporaldoorway.com>
Subject: Re: Catching a primary key error
Date: Mon, 23 Apr 2001 13:04:39 -0300
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 142.166.66.146
Message-ID: <3ae451ef$1_1@dnews>
X-Trace: dnews 988041711 142.166.66.146 (23 Apr 2001 09:01:51 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews