RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTable.GotoCurrent Method

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

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

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!