CDaoRecordset::GetIndexCount

short GetIndexCount( );
throw( CDaoException, CMemoryException );

Return Value

The number of indexes in the table-type recordset.

Remarks

Call this member function to determine the number of indexes available on the table-type recordset. GetIndexCount is useful for looping through all indexes in the recordset. For that purpose, use GetIndexCount in conjunction with GetIndexInfo. If you call this member function on dynaset-type or snapshot-type recordsets, MFC throws an exception.

For more information about creating recordsets, see the article DAO Recordset: Creating Recordsets in Visual C++ Programmer's Guide. For related information, see the topic "Attributes Property" in DAO Help.

CDaoRecordset OverviewClass MembersHierarchy Chart

See Also   CDaoRecordset::GetFieldCount, CDaoRecordset::GetFieldInfo, CDaoRecordset::GetIndexInfo