[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • Last Modified:

Prevent event from processing further

I need to stop the FURTHER processing of an event as below:-

procedure TMainFruitTestingForm.DBNavigator1BeforeAction(Sender: TObject;
  Button: TNavigateBtn);
begin
  if Button = nbInsert then exit;
end;

When the above event fires, the result is that the dataset is still moved into an insert state.

Thanks,
Dion.
0
Diono
Asked:
Diono
1 Solution
 
kretzschmarCommented:
try silent exception abort:

  if Button = nbInsert then abort;

meikl ;-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now