Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

How to Specify a Unicode Key Segment

An ordinary c-treeDB key segment is defined by a field handle and mode. c-treeDB also allows the specification of a key segment using an offset, length, and mode.

In the following example, since the segment mode is CTSEG_SCHSEG, and if hField is a handle of a field whose type is one of the Unicode field types CT_FUNICODE, CT_F2UNICODE, CT_UNICODE or CT_2UNICODE, then c-treeDB will understand this is a Unicode key segment.

Previous Topic

Next Topic

Specifing a Unicode Key Segment C++ Example

hField = hTable.AddField( "customer", CT_FUNICODE, 40);

hTable.AddSegment(0, hField, CTSEG_SCHSEG);

TOCIndex