Jump to content
Ian Branch

Display a conditional message on data change...

Recommended Posts

Posted (edited)

Hi Team,

I want to display a conditional message on data change.

The condition tests a couple of fields in the record and if the test is True then a message is displayed.

I currently have relevant code in the Table DataChange event.

Unfortunately, the message is displayed on every occurrance when a record is selected past other records that the condition is true.  😞

How can I get this to work/show only when the the data changing has stopped and the selected record is visible to the User?

 

Ian

Edited by Ian Branch

Share this post


Link to post

One suggestion would be to use a timer that is reset in OnDataChange. I've done something similar when implementing an incremental search, using the OnChange event of a TEdit for example.

Share this post


Link to post
Posted (edited)
1 hour ago, JonRobertson said:

using the OnChange event of a TEdit for example.

Tks.  I added the functionality to the InChange of a Read-Only DBEdit on the Form and it works perfectly.

 

Ian

Edited by Ian Branch

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×