RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomClientDataSet.GotoKey Method

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

Pascal
function GotoKey: Boolean;
C++
__fastcall Boolean GotoKey();

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 search key buffer. 

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. 

 

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