Creates a new Index object (Microsoft Jet workspaces only).
Syntax
CdbIndexCreateIndex(LPCTSTR pstrName=NULL);
Parameters
Type | Example | Description |
LPCTSTR | pstrName=NULL | Optional. A pointer to a string that uniquely names the new Index object. See the Name property for details on valid Index names. |
Remarks
To remove an Index object from a collection, use the Delete method on the collection.
Usage
#include <afxole.h>
#include <dbdao.h>
CdbIndex idx;
CdbTableDef td;
... // Initialize td, etc.
idx = td.CreateIndex( _T("CarPartsIdx"));