IndexKeyField

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

IndexKeyField

Declaration

function IndexKeyField: String;

Description

Extracts the name of the first field in an index key expression. Useful for constructing dynamic optimized queries.

Return Value

The name of the first field in the current index key expression. If the index is not based upon a field, a zero length string is returned (e.g., str(recno,5,0)).

Delphi Example

// Display key field name

Label1.Caption := ApTbl.IndexKeyField;

C++Builder Example

// Display key field name

Label1->Caption = ApTbl->IndexKeyField();

See Also

IndexKey