CloseTable
CloseTable closes a previously opened table.unsigned __int64 CloseTable ( 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
- This method does not need to be called, as all tables are closed when EndTransaction or CloseDatabase.
Example Use
- C++
#include "ODBPP.h" int wmain(int argc, wchar_t* argv[]) { unsigned __int64 error; const char16_t *message; CODBPP database; if(database.BeginTransaction() == NO_ERROR{ if((error = database.OpenTable(1)) == NO_ERROR){ ... } if(error && database.GetErrorMessage(&message) == NO_ERROR) MessageBox(message); database.CloseTable(1); } else if(database.GetErrorMessage(&message) == NO_ERROR) MessageBox(message); database.EndTransaction(); return NO_ERROR; }
Also See
AddTable, CreateTable, OpenTable, RemoveTableListen All
Comments (0)