Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTField::GetStatus

Retrieves the changed status of a field object.

Declaration

ULONG CTField::GetStatus() const;

Description

CTField::GetStatus() retrieves the changed status of a field object. The status of a field object is a bit map describing one or more changes that have occurred with the field object.

Return

CTField::GetStatus returns a bitmap of the following:

Value

Symbolic Constant

Explanation

0x00

CTDBFIELD_OLD

Original field as read from table

0x01

CTDBFIELD_NEW

Field added or inserted

0x02

CTDBFIELD_DEL

Original field deleted

0x04

CTDBFIELD_MOVED

Original field moved

0x10

CTDBFIELD_NAME

Field name changed

0x20

CTDBFIELD_TYPE

Field type changed

0x40

CTDBFIELD_LEN

Field length changed

0x80

CTDBFIELD_RESOURCE

Field resource changed

Example


// if field is new delete it

for (i = 0; i < (NINT) hTable.GetFieldCount(); i++)

{

CTField hField = hTable.GetField(i);

if (hField.GetStatus() & CTDBFIELD_NEW)

hTable.DelField(i);

}

See Also

CTIndex::GetStatus(), CTSegment::GetStatus()

TOCIndex