Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTTable.InsertField

Syntax

CTField InsertField( int BeforeField, String Name, FIELD_TYPE Type,

int Length)

CTField InsertField( String BeforeField, String Name, FIELD_TYPE Type,

int Length)

Parameters

  • BeforeField [in] Insert the new field before this field number, if the prototype InsertField(int BeforeField, String Name, FIELD_TYPE Type, int Length) is used. Insert the new field before this field name, if the prototype InsertField(String BeforeField, String Name, FIELD_TYPE Type, int 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