sx_IndexKeyField

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_IndexKeyField

VB Declaration

Declare Function sx_IndexKeyField Lib "Apollo9.dll" () As String

C Declaration

LONG FAR PASCAL sx_IndexKeyField (VOID);

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)).

VB Example

Dim FieldName As String

FieldName = sx_IndexKeyField()

C Example

BYTE caFieldName[11];

lstrcpy((LPSTR) caFieldName, (LPSTR) sx_IndexKeyField());

See Also

sx_IndexKey