CTRecord::RecordSetOn
Syntax
void RecordSetOn(NINT siglen)
Parameters
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)
{
NINT 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());
}
printf("%d records in set\n", count);
}
See also
RecordSetOff()