stopping on-click in BeforAction

Does anyone know how to stop a TDbNavigator.OnClick event happening depending on certain conditions examined in the BeforeAction? It seems setting a flag and doing an abort might be the best.  Tom.
boardtcAsked:
Who is Participating?
 
Pegasus100397Connect With a Mentor Commented:
Tom,

If button = nbPost then
     If Edit1.Text = '' then      {Required value left out!}
         Begin
          Showmessage('Must enter a value!');
          ABORT;
         End;

Good luck with your project!
Pegasus
0
 
WaldekCommented:
Hmm , Do I good understand You ? Check Abort procedure :}
0
 
boardtcAuthor Commented:
Pegasus, thanks a lot, I tied the abort in the onclick based on a flag set in beforeaction and stupidly never tried the abort in the BeforeAction.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.