A table must be opened before any data operations within it can take place. Use the CTTable.Open() method to open a table.
// open a table
CTTable ATable = new CTTable(ADatabase);
try
{
ATable.Open("MyTable", OPEN_MODE.NORMAL_OPEN);
}
catch (CTException err)
{
Console.Write("Open table failed with error {0}\n", err.GetErrorCode());
}
After opening the table, usual operations like add, update, delete, and search for records can be done. Record operations are described in detail in Working with Records.
The CTTable.Open() method takes as parameters a table name and the table open mode defined in the OPEN_MODE enum.