Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTRecord::Delete

Syntax

void Delete( )

Parameters

This method has no parameters.

Description

Deletes the current record from table. The record must be locked with one of the write locks before it is deleted.

Return

None.

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

Clear(), Reset(), Read(), Write(), LockRecord(), CTBase::Lock()

TOCIndex