Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTField::ClearFieldDefaultValue

Clears the default value associated with a field.

Declaration

void CTField::ClearFieldDefaultValue();

Description

CTField::ClearFieldDefaultValue() clears the default value associated with a field. The default date and time types are also reset to their default values of CTDATE_MDCY and CTTIME_HMS respectively.

Example


// clear the default field value

try

{

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

hField.ClearFieldDefaultValue();

}

catch (CTException &err)

{

printf("ClearFieldDefaultValue failed\n");

}

Return

void

See Also

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

TOCIndex