To create a record set, perform the following steps
// create a new record object
CTRecord ARecord = new CTRecord(ATable);
// clear the record buffer
ARecord.Clear();
// populate the fields
ARecord.SetFieldAsString(0, "DISK");
// create the record set
try
{
ARecord.RecordSetOn(4);
}
catch (CTException err)
{
Console.Write("Record set on failed with error {0}\n", err.GetErrorCode());
}
Once the record set is created, CTRecord.First(), CTRecord.Next(), CTRecord.Last() and CTRecord.Prev() will return only the records that match the record set criteria.