TurboDB VCL Component Library

TTdbDatabase.RefreshDataSets

TTdbDatabase

Previous  Top  Next

Updates data access components that have been changed by other users.

Delphi syntax:

procedure RefreshDataSets;

C++ syntax:

void __fastcall RefreshDataSets(void);

Description

Use RefreshDataSets to refresh all datasets associated with this database component that are changed by other databases/applications in a multi-user environment. RefreshDataSets checks which datasets have been modified since the last update and updates the datasets as necessary.

The typical use of RefreshDataSets is in an OnTimer handler. Every second or so you can refresh the datasets of the database to reflect changes made in the work group environment.