Re: Preventing insert, update and deletes
- From: "Mikael Lenfors" <mikael@xxxxxxxxxx>
- Date: Wed, 23 Aug 2006 07:55:03 +0200
Thanks!
"Bill Todd" <no@xxxxxx> skrev i meddelandet
news:44eb6c04$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Mikael Lenfors wrote:
How do I abort in this case?
To prevent the intended action in any Before... event handler just
raise an exception. The most common way is to raise a silent exception.
This is so common that there is a method that does it for you named
SysUtils.Abort.
--
Bill Todd (TeamB)
.
- References:
- Preventing insert, update and deletes
- From: Mikael Lenfors
- Re: Preventing insert, update and deletes
- From: Bill Todd
- Preventing insert, update and deletes
- Prev by Date: Re: Can't use '*' in TADODataset.Filter
- Next by Date: SQL Syntax for a single quote in a string.
- Previous by thread: Re: Preventing insert, update and deletes
- Next by thread: Filtering ADO from other form. Problem
- Index(es):
Relevant Pages
|