Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

Creating a Table Object

A valid table object is required before most table operations can take place. You need to pass a valid CTDatabase object to the CTTable constructor.


// create a CTTable object

CTTable ATable = new CTTable(ADatabase);

try

{

// open table "MyTable"

ATable.Open("MyTable", OPEN_MODE.NORMAL_OPEN);

}

catch (CTException err)

{

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

}


TOCIndex