Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

Add, Insert, Delete, or Edit Fields

By calling one of the following edit management methods, the table definition is marked as modified. For the changes to be reflected in the data and index files, you must call CTTable.Alter().

To add, insert or delete a field, call CTTable.AddField(), CTTable.InsertField(), CTTable.DelField(), CTField.SetName(), CTField.SetType(), CTField.SetLength(), CTField.SetPrecision(), CTField.SetScale(), and CTField.SetNullFlag().

Most changes relating to fields will trigger the CTTable.Alter() to perform a full table rebuild.

TOCIndex