Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

Check if field is fixed or variable length

Call CTRecord::IsVariableField() method to check if a field is variable length or not. CTRecord::IsVariableField() return YES if the field is variable length.

// check if field 0 is variable length

if (ARecord.IsVariableField(0))

{

printf("Field 0 is variable length\n");

}

else

{

printf("Field 0 is fixed length\n");

}

TOCIndex