sx_IndexClose

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_IndexClose

VB Declaration

Declare Sub sx_IndexClose Lib "Apollo9.dll" ()

C Declaration

VOID FAR PASCAL sx_IndexClose (VOID);

Description

Closes the current index file. If this is a compound index, the effect is the same as sx_CloseIndexes.

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_CloseIndexes