Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

Selecting the RECBYT Index

The RECBYT index can be selected as the default index in order to perform record navigation with CTRecord.First(), CTRecord.Last(), CTRecord.Next() and CTRecord.Prev(), ordered by the record offset. The RECBYT index can be selected as the default index by passing the index value of IDXNO.RECBYT_NO to CTRecord.SetDefaultIndex() method.

// set the RECBYT index as the default index

try

{

ARecord.SetDefaultIndex( (NINT) IDXNO.RECBYT_NO);

}

catch (CTException err)

{

Console.Write("Set default index failed with error {0}\n", err.GetErrorCode());

}

TOCIndex