Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Abort Post
Fri, Jun 30 2006 9:23 AMPermanent Link

Mike Mayer
Hi,

I use code below in OnDataSetPost Event to ask user if he/she want to abort post.
The main problem is that abort function abort not only post but also other action which is executed
together with post.

For example I use 3rd party Grid, if I move selection from one record to another, Grid automatically
execute post function. If user abort post using code below, grid record selection code also aborted.

Any suggestion?

if UserConfirmPostData = false then
   begin
     abort;
   end;

Regards,
Mike
Fri, Jun 30 2006 9:52 AMPermanent Link

"Ralf Mimoun"
Mike Mayer wrote:
> Hi,
>
> I use code below in OnDataSetPost Event to ask user if he/she want to
> abort post.
> The main problem is that abort function abort not only post but also
> other action which is executed together with post.

Try .Cancel.

Ralf
Fri, Jun 30 2006 4:26 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mike,

<< I use code below in OnDataSetPost Event to ask user if he/she want to
abort post. The main problem is that abort function abort not only post but
also other action which is executed together with post. >>

I assume that you mean the TDataSet.BeforePost event ?

<< For example I use 3rd party Grid, if I move selection from one record to
another, Grid automatically execute post function. If user abort post using
code below, grid record selection code also aborted. >>

Unfortunately, the only way around that is to sub-class the TDBISAMTable or
TDBISAMQuery component and override the CheckBrowseMode method to implement
the custom handling.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image