Previous Topic

Next Topic

Supported Data Types

The c-tree Crystal Reports Driver supports the following data types. Additional types can be added with the c-tree Driver Types SDK described below.

Crystal data type

c-tree Plus data type

Explanation of c-tree Plus data type

Boolean

CT_BOOL

One byte Boolean.

1 byte signed integer

CT_CHAR

Signed char.

1 byte unsigned integer

CT_CHARU

Unsigned char.

2 byte signed integer

CT_INT2

Signed two-byte integer.

2 byte unsigned integer

CT_INT2U

Unsigned two-byte integer.

4 byte signed integer

CT_INT4

Signed four-byte integer.

4 byte unsigned integer

CT_INT4U

Unsigned four-byte integer.

Currency

CT_MONEY

Signed four-byte integer interpreted as number of pennies.

Date

CT_DATE

Signed four-byte integer interpreted as the number of days since 02/28/1700.

Time

CT_TIME

Unsigned four-byte integer interpreted as the number of seconds since midnight.

Timestamp

CT_TIMES

Eight-byte floating point interpreted as the number of days since 12/30/1899 plus the number of seconds since midnight divided by 86400.

Double Precision Float

CT_SFLOAT

Four-byte floating point.

 

CT_DFLOAT

Eight-byte floating point.

String fields

CT_FSTRING

Fixed length field delimited data.

 

CT_FPSTRING

Fixed length data with 1-byte length count.

 

CT_F2STRING

Fixed length data with 2-byte length count.

 

CT_F4STRING

Fixed length data with 4-byte length count.

 

CT_STRING

Varying length field delimited data.

 

CT_PSTRING

Varying length data with 1-byte length count.

 

CT_2STRING

Varying length data with 2-byte length count.

 

CT_4STRING

Varying length data with 4-byte length count.