TurboDB VCL Component Library

TTdbTable.GotoKey

TTdbTable        See also

Previous  Top  Next

Moves the cursor to a record specified by the current key.

Delphi syntax:

function GotoKey: Boolean;

C++ syntax:

bool __fastcall GotoKey(void);

Description

Use GotoKey to move to a record specified by key values assigned with previous calls to SetKey or EditKey and actual search values indicated in the Fields property.

If GotoKey finds a matching record, it positions the cursor on the record and returns True. Otherwise the current cursor position remains unchanged, and GotoKey returns False.