Solved

DB updates?

Posted on 1998-01-25
7
167 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Correct Component for Shopping Cart. 2 121
CheckListBox usage 3 82
Microsoft Access 97 and Delphi XE2 9 74
Way to create an iPhone app for my customers 8 47
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 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