RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBTable.GotoCurrent Method

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

Pascal
procedure GotoCurrent(Table: TIBTable);
C++
__fastcall GotoCurrent(TIBTable Table);

Call GotoCurrent to synchronize the cursor position for this table based on 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 Database and TableName properties. Otherwise an exception is raised.
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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!