Hiya, is it possible to abort the navigation of a TDataset?
I see that in TDataSet.MoveBy():
function TDataSet.MoveBy(Distance: Integer): Integer;
var
OldRecordCount, ScrollCount, I: Integer;
begin
CheckBrowseMode;
Result := 0;
DoBeforeScroll;
if ((Distance > 0) and not FEOF) or ((Distance < 0) and not FBOF) then
begin
.....
end;
Unfortunately theres no visible way to stop the navigation.
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?
--
There are exceptions, I'm sure, but the Windows 2000 on-line community
seems to have, in general, the moral and spiritual qualities of your
average porn site. (c) Bryan Pfaffenberger, Linux Journal, Jan 2001.
---------------------------------------------------------------------------
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"