I think you might also have trouble using the OnBeforeScroll event for this.
By the time it is triggered the CheckBrowseMode code has already run which
will have posted or cancelled any outstanding edits.

David.

----- Original Message -----
From: "Max Nilson" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, March 15, 2001 4:13 PM
Subject: RE: [DUG]: Aborting a TDataSet.Prior/next etc.


> Mark Derricutt asked:
>
> > I'm using an OnBeforeScroll event to promt the user "do you
> > want to save" if the dataset is in edit mode, but if their
> > was a problem updating, I dont wish the navigation to continue,
> > any ideas?
>
> Our usual technique is to use Abort. That sill unwind the action that
> cased the navigate in the firstlace and stop when the event get to the
> main event loop. Probably what you want to happen.
>
> Cheers, Max.
>
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to