Article View: borland.public.cppbuilder.database.ado
Article #5572Re: Cancelling delete in BeforeDelete events ???
From: Mark Guerrieri
Date: Fri, 30 Mar 2001 15:37
Date: Fri, 30 Mar 2001 15:37
30 lines
1565 bytes
1565 bytes
Just throw an exception to abort the delete.
Mark
"Sandi Wijaya" <sandiwijaya@yahoo.com> wrote in message
news:3aa4a015_1@dnews...
> Hi, everyone.
>
> I want to cancelling a delete process, in BeforeDelete event.
> the code :
>
> void __fastcall TDM_MaintChqType::Q_chqtypeBeforeDelete(TDataSet *DataSet)
> {
> /* checking codition before delete the record */
> ...
> ...
>
> }
>
> So, if the condition isn't fulfilled then I want to return to the caller,
> because the event is void type, I can't do that. Then , how should I do
for
> breaking /cancelling the proses of delete ???
>
>
> Thank's in advance, someone.
>
>
>
>
Technical Details
Message-ID:
<3ac4a7d1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sandbox.supernews.net!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.direct.ca!look.ca!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!dnews!64.67.69.146References:
<3aa4a015_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,a796c25e92fcc869 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-03-30 07:58:04 PST From: "Mark Guerrieri" <mguerrieri@cmsgrp.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3aa4a015_1@dnews> Subject: Re: Cancelling delete in BeforeDelete events ??? Date: Fri, 30 Mar 2001 10:37:18 -0500 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 64.67.69.146 Message-ID: <3ac4a7d1_1@dnews> X-Trace: 30 Mar 2001 07:35:45 -0800, 64.67.69.146 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sandbox.supernews.net!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.direct.ca!look.ca!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!dnews!64.67.69.146