CDaoTableDef::DeleteIndex

void DeleteIndex( LPCTSTR lpszName );
throw( CDaoException, CMemoryException );

void DeleteIndex( int nIndex );
throw( CDaoException, CMemoryException );

Parameters

lpszName

A pointer to a string expression that is the name of an existing index.

nIndex

The array index of the index object in the database’s zero-based TableDefs collection, for lookup by index.

Remarks

Call this member function to delete an index in an underlying table. You can use this member function on a new object that hasn’t been appended to the database or when CanUpdate returns nonzero.

For more information on tabledefs, see the articles DAO Tabledef and DAO Tabledef: Using Tabledefs in Visual C++ Programmer's Guide. For related information, see the topic "Delete Method" in DAO Help.

CDaoTableDef OverviewClass MembersHierarchy Chart

See Also   CDaoTableDef::CreateIndex, CDaoTableDef::CreateField, CDaoTableDef::DeleteField