Home Home

CloseTable

CloseTable Closes an open table.
unsigned int 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. If the table is not open, CloseTable does not return an error.

Remarks

  • This method does not need to be called, as all tables are closed when EndTransaction or CloseDatabse.
  • Example Use

    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();
    

    Also See

    AddTable, CreateTable, OpenTable, RemoveTable

    Copyright © 2003-2008, Ekky Software Pty. Ltd.