Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

Clearing the Record Buffer

Call CTRecord.Clear() to clear the record buffer. The record buffer is cleared, the full bit flag for all fields are cleared, the new record flag is set to false, the edited record flag is cleared, and the record offset is set to zero.


// clear the record buffer

CTRecord ARecord = new CTRecord(ATable);

try

{

ARecord.Clear();

}

catch (CTException err)

{

Console.Write("Record clear failed with error {0}\n", err.GetErrorCode());

}


TOCIndex