Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

New Record Flag

The new record flag indicates if a record has been cleared and not written to disk yet. The record manager uses this flag to decide if a record should be added or updated.

The new record flag is set when the record handle is allocated or when CTRecord.Clear() clears the record. The new record flag is cleared when a record is read from disk by calling one of the CTRecord.First(), CTRecord.Last(), CTRecord.Next(), CTRecord.Prev(), CTRecord.SeekRecord(), CTRecord.Find() or CTRecord.FindTarget() methods.

Use CTRecord.SetNew() to set the new record flag or CTRecord:IsNew() to check if a record is new or not.

TOCIndex