Article View: borland.public.cppbuilder.nativeapi
Article #2849Re: How can I catch EDataBaseError : "Field '%s' must have a value"
From: Vladimir Stefanovic
Date: Sat, 02 Dec 2006 14:29
Date: Sat, 02 Dec 2006 14:29
21 lines
1539 bytes
1539 bytes
> I want do it on the system level.
> I donοΏ½t want rewrite a PostError event for all components.
You can have only *one* common OnPostError() for every
database component (not tested, but I'm prety sure)
Then you can say:
void __fastcall TDataModule::SharedADODataSetPostError(TDataSet *DataSet,
EDatabaseError *E, TDataAction &Action)
{
Action = daAbort;
}
Just select this event form every ADO dataset object.
--
Best Regards,
Vladimir Stefanovic
Technical Details
Message-ID:
<45718db3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<457059b9@newsgroups.borland.com> <45706cdd$1@newsgroups.borland.com> <45717436$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7a3f4138c63144de X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.nativeapi References: <457059b9@newsgroups.borland.com> <45706cdd$1@newsgroups.borland.com> <45717436$1@newsgroups.borland.com> Subject: Re: How can I catch EDataBaseError : "Field '%s' must have a value" Date: Sat, 2 Dec 2006 15:29:40 +0100 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 89.216.237.0 Message-ID: <45718db3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1165069747 89.216.237.0 (2 Dec 2006 06:29:07 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail