The ROWID 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 ROWID value of each record. The ROWID index can be selected as the default index by passing the index value of IDXNO.ROWID_NO to the CTRecord.SetDefaultIndex() method.
// set the ROWID index as the default index
try
{
ARecord.SetDefaultIndex( (NINT) IDXNO.ROWID_NO);
}
catch (CTException err)
{
Console.Write("Set default index failed with error {0}\n", err.GetErrorCode());
}