Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTTable::InsertField

Syntax

CTField InsertField(const NINT BeforeField, const CTString& Name,

CTDBTYPE Type, VRLEN Length)

CTField InsertField(const CTString& BeforeField, const CTString& Name,

CTDBTYPE Type, VRLEN Length)

Parameters

  • BeforeField [in] Insert the new field before this field number, if the prototype InsertField(const NINT BeforeField, const CTString& Name, CTDBTYPE Type, VRLEN Length) is used. Insert the new field before this field name, if the prototype InsertField(const CTString& BeforeField, const CTString& Name, CTDBTYPE Type, VRLEN Length) is used.
  • Name [in] The field name to insert in the table
  • Type [in] the field type. Valid field type values are shown in "Field Types".
  • Length [in] the field length

Description

Inserts a new field into the table, in the specified position.

Return

InsertField() returns a field object on success or NULL on failure.

See also

AddField(), DelField(), GetFieldNumber()

TOCIndex