Article View: borland.public.cppbuilder.database.ado
Article #5756Cancelling delete in BeforeDelete events ???
From: Sandi Wijaya
Date: Tue, 06 Mar 2001 08:29
Date: Tue, 06 Mar 2001 08:29
19 lines
1352 bytes
1352 bytes
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:
<3aa4a015_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.stealth.net!203.109.225.2.MISMATCH!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!bornews.borland.com!dnews!202.158.56.135Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,a796c25e92fcc869,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-03-06 00:34:04 PST From: "Sandi Wijaya" <sandiwijaya@yahoo.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Cancelling delete in BeforeDelete events ??? Date: Tue, 6 Mar 2001 15:29:51 +0700 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 202.158.56.135 Message-ID: <3aa4a015_1@dnews> X-Trace: 6 Mar 2001 00:30:13 -0800, 202.158.56.135 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.stealth.net!203.109.225.2.MISMATCH!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!bornews.borland.com!dnews!202.158.56.135