Solved

stopping on-click in BeforAction

Posted on 1998-05-19
3
168 Views
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.
0
Comment
Question by:tomcorcoran
3 Comments
 
LVL 2

Expert Comment

by:Waldek
ID: 1346320
Hmm , Do I good understand You ? Check Abort procedure :}
0
 
LVL 3

Accepted Solution

by:
Pegasus100397 earned 50 total points
ID: 1346321
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
 

Author Comment

by:tomcorcoran
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.
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

803 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