Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

Adding an Existing Table

An existing table may be added or imported to a database by calling the CTDatabase.AddTable() method. CTDatabase:AddTable() takes as parameters the table name and the table path.

// add MyTable to the current database

try

{

ADatabase.AddTable("MyTable", "");

}

catch (CTException err)

{

Console.Write("Add table failed with error {0}\n", err.GetErrorCode());

}

TOCIndex