Find Active TableCTDatabase::FindActive() locates a specific active table and returns the table object pointer. If the table is not active, CTDatabase::FindActive() returns NULL. // Check if table is active CTBOOL IsTableActive(CTDatabase& ADatabase, CTString& tblName) {
return (ADatabase.FindActive(tblName) != NULL) ? YES : NO; The function above is shown for example purposes only as the c-treeDB method CTTable::IsActive() provides a more efficient way to check if a table is active. |
|||