PreviousDTI Programmer's Guide (v10) Next

PvDropIndex()

Chapter contents

Drops the index from dictionary and data files, given the index number.

Header file: DDF.H
Requires: W3DBAV75.DLL or higher version

Syntax

PRESULT PvDropIndex( 
	WORD            dictHandle, 
	LPCSTR          tableName, 
	WORD            indexNumber, 
	BOOL            renumber); 

Arguments

In
dictHandle
Handle of an open dictionary returned by PvOpenDictionary().
In
tableName
Structure containing table information
In
indexNumber
Number of the index to be dropped.
In
renumber
Indicates whether the remaining indexes should be renumbered.

Return Values

PCM_Success
The operation was successful.
PCM_errFailed
The operation was not successful.
PCM_errInvalidDictionaryHandle
The specified dictionary handle does not exist.
PCM_errTableNotFound
The specified table was not found.
PCM_errInvalidIndex
The specified index was not found.

Remarks

You must first open a dictionary successfully using PvOpenDictionary().

The table specified by tableName must exist in the dictionary specified by dictHandle.

See Also

PvStart()
PvOpenDictionary()
PvDropIndexByName()
PvAddIndex()
PvCloseDictionary()
PvStop()


Chapter contents
Book contents

Prev topic: PvDropGroup()
Next topic: PvDropIndexByName()