Solved

stopping on-click in BeforAction

Posted on 1998-05-19
3
165 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now