<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_IndexType |
Declare Function sx_IndexType Lib "Apollo9.dll" () As Integer
SHORT FAR PASCAL sx_IndexType (VOID);
Gets the current index or Tag type.
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
' 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)
// 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"));