Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTRecord.RecordSetOn

Syntax

void RecordSetOn(int siglen)

Parameters

  • siglen [in] The number of key bytes.

Description

Activates record sets. After activating a record set, set the fields and index desired in the search, and then perform the search using the regular search functions. Notice that it is necessary to set the first siglen bytes from the index segments.

Return

None.

Example

// display all records in set - no error checking

void DisplayAll(CTRecord& pRec)

{

int count = 0;

pRec.Clear();

pRec.SetDefaultIndex("index_name");

pRec.SetFieldAsString(0, "silva");

pRec.RecordSetOn(5);

if (pRec.First())

{

do

{

count++;

PrintRecord(pRec);

}

while (pRec.Next());

}

Console.Write("{0} records in set\n", count);

}

See Also

RecordSetOff()

TOCIndex