Table countCTDatabase::GetTableCount() retrieves the number of tables associated with a database. CTDatabase::GetTableCount() return -1 (minus 1) if the database is not connected or if the database object is invalid. // display the number of tables in database printf(“Number of tables: %d\n”, ADatabase.GetTableCount()); |
|||