Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

stopping on-click in BeforAction

Posted on 1998-05-19
Last Modified: 2010-04-06
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.
Question by:tomcorcoran

Expert Comment

ID: 1346320
Hmm , Do I good understand You ? Check Abort procedure :}

Accepted Solution

Pegasus100397 earned 50 total points
ID: 1346321

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

Good luck with your project!

Author Comment

ID: 1346322
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.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question