Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTRecord::Clear

Syntax

void Clear( )

Parameters

This method has no parameters.

Description

Clears the record buffer. Following this, c-treeDB no longer has a current record.

Return

None.

Example


Rec1 = new CTRecord(pTable);

Rec1->Clear();

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

Rec1->SetFieldAsLong("age", 35);

Rec1->SetFieldAsString("phone", "555-55555");

Rec1->Write();


See also

Read(), Write(), Delete(), Reset(), Lock(), Locking

TOCIndex