Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us
TABSTable.FindKey
TABSTable
Top 


Searches for a record containing specified field values.

function FindKey(const KeyValues: array of const): Boolean;

Description
Call FindKey to search for a specific record in a dataset. KeyValues contains a comma-delimited array of field values, called a key. Each value in the key can be a literal, a variable, a null, or nil. If the number of values passed in KeyValues is less than the number of columns in the index used for the search, the missing values are assumed to be null.

The key must always be an index, which can be specified in the IndexName property. If IndexName is empty, FindKey raises an exception.

If the search is successful, FindKey positions the cursor on the matching record and returns True. Otherwise the cursor is not moved, and FindKey returns False.
        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Apr 23, 2024