
OpenTable
OpenTable opens an already created table.unsigned __int64 OpenTable ( unsigned int tableID );
Parameters
| tableID | the table ID defining the table's handle. |
Return Values
If the method succeeds, the return value is zero else see error codes for more details.Remarks
Example Use
- C++
#include "ODBPP.h"
#define FIRST_TABLE 1
int wmain(int argc, wchar_t* argv[])
{
unsigned __int64 error;
const char16_t *message;
CODBPP database;
if((error = database.OpenDatabase(u"YourDatabase")) == NO_ERROR
&& (error = database.BeginTransacation()) == NO_ERROR
&& (error = database.OpenTable(FIRST_TABLE)) == NO_ERROR){
...
}
if(error && database.GetErrorMessage(&message) == NO_ERROR)
MessageBox(message);
database.CloseDatabase();
return NO_ERROR;
}Also See
AddTable, CloseTable, CreateTable, RemoveTable, SetTableSchemaListen All
Comments (0)

