Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTField::SetNullFlag

Syntax

void SetNullFlag(CTBOOL flag)

Parameters

  • flag [in] The new null flag setting.

Description

Sets the new null flag value. The null flag indicates if the field can contain a null value.

The c-treeDB null flag controls the NOT NULL property of a column. Setting this column has no effect on individual record null values: it is NOT enforced at the c-treeDB layer. This attribute only applies to the FairCom DB SQL layer for constraint on values. It is useful to set this flag in c-tree data files before SQL import such that the property is maintained.

Return

None.

See also

GetNullFlag()

TOCIndex