Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTIndex::GetIdxno

Retrieves a table index file number from an index object.

Declaration

NINT CTIndex::GetIdxno()

Description

Retrieves a table index file number from an index object.

Return

GetIdxno() returns a table index file number.

Example


// retrieve the first key of first index

TEXT keyval[256];

CTIndex hIndex = hTable.GetIndex(0);


if (FirstKey(hIndex.GetIdxno(), keyval)

printf("FirstKey failed\n");

See Also

CTBase::SwitchInstance(), CTRecord::SwitchContext(), CTTable::GetDatno(), CTTable::GetIdxno()

TOCIndex