Solved

DB updates?

Posted on 1998-01-25
7
161 Views
Last Modified: 2010-04-04
Hi!

How can I detect if other DB programs makes change to my DB?
I am using Delphi 3.0 Prof w/BDE
0
Comment
Question by:chrb
  • 3
  • 3
7 Comments
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1357535
If you mean while your app is off, you can save your db's size and check it later. The chances are, if the db changes, the size will change too
0
 

Author Comment

by:chrb
ID: 1357536
I meen while the program is running. It is a Paradox table.
0
 
LVL 1

Expert Comment

by:millerw
ID: 1357537
While a table is running, use a callback function with the BDE.  It is called cbTABLECHANGED.  Also check out the DBICheckRefesh and DBIForceRefresh BDE functions.

BTW--check those all out in the BDE API Help file.

Need more help, just write,
Scott
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Expert Comment

by:millerw
ID: 1357538
http://www.borland.com/devsupport/bde/delphifiles.html

Try the component on this page--here is the description:

Delphi table change notification component with example: This sample component does all the BDE API work for you to give notification when a Paradox table has changed.  Fully configurable; check interval time and custom event allows you to do anything you want when the table has changed. Simply install the new TTable component (TRegisterTable in RegisterTable.pas) and compile the included project. This component will work with all table types, but will only use the callback with Paradox table types.

If you like this, just reject the current answer and I'll post this as the answer.

Have fun,
Scott
0
 

Author Comment

by:chrb
ID: 1357539
Thanks Millerw, please post as answer :)

Chr
0
 
LVL 1

Accepted Solution

by:
millerw earned 70 total points
ID: 1357540
http://www.borland.com/devsupport/bde/delphifiles.html

Try the component on this page--here is the description:

Delphi table change notification component with example: This sample component does all the BDE API work for you to give notification when a Paradox table has changed. Fully configurable; check interval time and custom event allows you to do anything you want when the table has changed. Simply install the new TTable component (TRegisterTable in RegisterTable.pas) and compile the included project. This component will work with all table types, but will only use the callback with Paradox table types.

Have fun,
Scott
0
 

Author Comment

by:chrb
ID: 1357541
Thanks!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

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…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

708 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

16 Experts available now in Live!

Get 1:1 Help Now