Previous Topic

Next Topic

Next Active Table

CTDatabase::GetNextActive() retrieves the table object pointer of the next active table. When no more active tables exist, CTDatabase::GetNextActive() returns NULL.

// Display all active tables
void DisplayActiveTables(CTDatabase &ADatabase)
{
   VRLEN hScan;
   CTTable *pTable;

   if ((pTable = ADatabase.GetFirstActive(&hScan)) != NULL)
   {
      do
      {
         printf(“Table: %s Path: %s\n”, pTable->GetName().c_str(),
         pTable->GetPath().c_str());
         pTable = ADatabase.GetNextActive(&hScan);
      }
      while (pTable != NULL;
   }
}