<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_IndexName |
Declare Function sx_IndexName Lib "Apollo9.dll"
(ByVal iIndex As Integer)
As String
LONG FAR PASCAL sx_IndexName (SHORT iIndex);
Extracts the DOS file name and path of the defined index.
iIndex: An integer identifying the order that will have its file name extracted. This function may be used to enumerate the indexes attached to the current work area.
The current order number may be retrieved with sx_IndexOrd.
The file name is returned as a string.
' 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"));
sx_IndexKey, sx_IndexOrd, sx_IndexType, sx_TagArea, sx_TagName