sx_IndexType

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_IndexType

VB Declaration

Declare Function sx_IndexType Lib "Apollo9.dll" () As Integer

C Declaration

SHORT FAR PASCAL sx_IndexType (VOID);

Description

Gets the current index or Tag type.

Return Value

An integer identifying the index (or Tag) type. This will be one of the following defined constants:

 

 INDEX_STANDARD    1

 INDEX_STANDARD_UNIQUE  2

 INDEX_CONDITIONAL   3

 INDEX_CONDITIONAL_UNIQUE 4

VB Example

' close and kill index if its a conditional index

If sx_IndexType() = INDEX_CONDITIONAL Then

IndexName$ = sx_IndexName(sx_IndexOrd())

sx_IndexClose

Kill IndexName$

End If

iRet = sx_SetOrder(MasterIndex)

C Example

// close and kill IDX index if its a conditional index

if (sx_IndexType() == INDEX_CONDITIONAL)

{

lstrcpy((LPSTR) caIndex, (LPSTR) sx_IndexName(sx_IndexOrd()));

sx_IndexClose();

unlink(caIndex);

}

sx_SetOrder(sx_TagArea("last"));

See Also

sx_IndexKey, sx_IndexName