Product Documentation

VCL/CLX Developers Guide

Previous Topic

Next Topic

Fixed or variable length records

The c-treeVCL/CLX table component automatically, and transparently, handles the details of fixed and variable length records. A table is set to variable length if it has at least one variable length field. c-treeDB scans the user field definitions until it encounters the first variable length field. If a table contains no variable length fields, the record is set to fixed length.

c-treeVCL/CLX also automatically calculates the size of the fixed portion of a record by adding the size of the fixed length fields, taking into consideration the field alignment in the record buffer, until the first variable length field is encountered. The variable length fields are listed below, with the matching c-tree Plus data type in parentheses:

CT_PSTRING (CT_PSTRING)

CT_VARBINARY (CT_2STRING)

CT_LVARBIN (CT_4STRING)

CT_VARCHAR or CT_LVARCHAR (CT_STRING)

Any type of field can be placed anywhere in the record buffer and also be used as an index segment. c-treeVCL/CLX makes full use of this feature by providing the user with an advanced dynamic record buffer management.

TOCIndex