Bde.DBTables.TTable.GotoCurrent

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: TTable

Delphi

procedure GotoCurrent(Table: TTable);

C++

void __fastcall GotoCurrent(TTable* Table);

Description

Synchronizes the current record for this table with the current record of a specified table component.

Call GotoCurrent to synchronize the cursor position for this table with the cursor position in another dataset that uses a different data source component, but which is connected to the same underlying database table. Table is the name of the table component whose cursor position to use for synchronizing.

Note: This procedure works only for table components that have the same DatabaseName and TableName properties. Otherwise, GotoCurrent raises an exception.

GotoCurrent is mainly for use in applications that have two table components that are linked to the same underlying database table through different data source components. It enables an application to ensure that separate views of the data appear to be linked.

See Also