Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTRecord::Find

Syntax

CTBOOL 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 YES if the record is found, NO otherwise.

Example


pRec->Clear();

pRec->SetDefaultIndex("name");

pRec->SetFieldAsString("name", "Peter Thorn");

if(pRec->Find(CTFIND_EQ))

{ pRec->LockRecord(CTLOCK_WRITE_BLOCK);

pRec->Delete();

}


See also

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

TOCIndex