Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTField::IsFieldDefaultValueSet

Checks if a field default value has been set or not.

Declaration

CTBOOL CTField::IsFieldDefaultValueSet()

Description

CTField::IsFieldDefaultValueSet() checks if a field default value has been set or not. This method returns YES if a field default value was set, otherwise it returns NO.

Return

Value

Symbolic Constant

Explanation

0

NO

Field default value is not set.

1

YES

Field default value is set.

Example


// check if default field value is set

CTField hField = hTable.GetField("country");

if (hField.IsFieldDefaultValueSet())

printf("Default field value is set\n");

else

printf("No default field value\n");

See Also

SetFieldDefaultValue(), GetFieldDefaultValue(), ClearFieldDefaultValue(), ClearAllFieldDefaultValue(), SetFieldDefaultDateTimeType(), GetFieldDefaultDateType(), GetFieldDefaultTimeType()

TOCIndex