Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTRecord::GetDefaultIndex

Syntax

NINT GetDefaultIndex( )

Parameters

This method has no parameters.

Description

Retrieves the default record index number.

Return

GetDefaultIndex() returns the default index number.

  • CTDB_DATA_IDXNO: indicates a physical data table traversal without using any indexes.

Example


i = pRec->GetDefaultIndex();

if (i == 1)

{

pRec->Clear();

pRec->First();

}


See also

SetDefaultIndex(), GetDefaultIndexName()

TOCIndex