CTTable::ClearAllFieldDefaultValue
Clears the default value associated with all fields in a table.
Declaration
void CTTable::ClearAllFieldDefaultValue();
Description
Clears the default value associated with all fields in a table. The default date and time types for each field are also reset to the default values of CTDATE_MDCY and CTIME_HMS respectively.
Return
void
Example
// clear all field default value
try
{
hTable.ClearAllFieldDefaultValue();
}
catch (CTException &err)
{
printf("ClearAllFieldDefaultValue failed\n");
}
See Also
SetFieldDefaultValue(), GetFieldDefaultValue(), IsFieldDefaultValueSet(), ClearFieldDefaultValue(), SetFieldDefaultDateTimeType(), GetFieldDefaultDateType(), GetFieldDefaultTimeType()