Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTField::SetBinaryFlag

Set the field binary flag.

Declaration

void CTField::SetBinaryFlag(CTDB_BINARY_FLAG binary_flag)

Description

This method sets the field's binary flag. Many times this flag is needed to indicate that the field is not binary.

The value of binary_flag [IN] is the value to set the flag. It can be any valid value for a binary flag. Some of the more commonly usd values are:

  • CTDB_BINARY_VARCHAR = 4, VARCHAR/LVARCHAR field created by c-treeSQL in v10
  • CTDB_BINARY_CLOB = 5, CLOB field created by c-treeSQL in v10
  • CTDB_BINARY_BLOB = 6, BLOB field created by c-treeSQL in v10
  • CTDB_NUMBER_MONEY = 7, NUMBER field used to store MONEY type (instead of using CT_CURRENCY)

Return Values

Value

Symbolic Constant

Explanation

0

NO_ERROR

Successful operation.

See c-tree Error Codes for a complete listing of valid c-tree Plus error values.

See Also

TOCIndex