Platform SDK: Broadcast Architecture |
The OpenIndexed method opens a recordset with a specified index. C syntax is shown.
void OpenIndexed( int iKeyID, int nOpenType, LPCTSTR lpszSQL, int nOptions );
Value | Meaning |
---|---|
dbOpenSnapshot | Open the recordset as a snapshot, in other words as a fixed copy of the records in the table. |
dbOpenDynaset | Open the recordset as a dynaset, in other words as a set of pointers to the records in the table. The dbOpenDynaset value is the default. |
This method does not return a value.
Calling OpenIndexed is functionally equivalent to calling OpenRecordset and then calling the DAO method SetIndex. SetIndex is the DAO wrapper for the Index Automation property for a DAO recordset.
The table-specific versions of OpenIndexed and OpenRecordset are implemented by the CTableNameRecordset objects that inherit from CDatabaseRecordset. For more information on the inheritance structure of the Guide data objects, see About Guide Data Objects.
Windows NT/2000: Unsupported.
Windows 95/98: Requires Windows 98.
Header: Declared in dbsets.h.
Import Library: Use dbsets.lib or dbsetsst.lib.