Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTRecord.Find

Syntax

bool Find (CTFIND_MODE FindMode)

Parameters

  • FindMode [in] The find mode for the search. Valid values for the find mode are shown in the "Find Modes".
    Notice that when the FindMode CTFIND_EQ is used, all segments that compose the index must be fulfilled, and also the index cannot allow duplicates.

Description

Looks for the record in the table.

Return

Find return true if the record is found, false otherwise.

Example

CTRecord searchRecord = new CTRecord(myTable);


searchRecord.Clear();

searchRecord.SetDefaultIndex("name");

searchRecord.SetFieldAsString("name", "Peter Thorn");

if(searchRecord.Find(CTFIND_EQ))

{ searchRecord.LockRecord(CTLOCK_WRITE_BLOCK);

searchRecord.Delete();

}

See Also

FindTarget(), First(), Last(), Next(), Prev()

TOCIndex