Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTField::GetFieldDefaultTimeType

Retrieves the default value time type.

Declaration

CTTIME_TYPE CTField::GetFieldDefaultTimeType();

Description

CTField::GetFieldDefaultTimeType() retrieves the default value time type used when converting string to time. The default value time type is returned.

Return

Value

Symbolic Constant

Explanation

1

CTTIME_HMSP

Time format is hh:mm:ss am|pm

2

CTTIME_HMP

Time format is hh:mm am|pm

3

CTTIME_HMS

Time format is hh:mm:ss (24 hour)

4

CTTIME_HM

Time format is hh:mm (24 hour)

5

CTTIME_MIL

Time format is hhmm (military)

Example


// check the default date type

try

{

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

if (hField.GetFieldDefaultTimeType() == CTTIME_HMS)

printf("Field default time type is OK\n");

}

catch (CTException &err)

{

printf("GetFieldDefaultTimeType() failed\n");

}

See Also

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

TOCIndex