Next TableCTDatabase::NextTable() retrieves the name and path of the next table in a database. CTDatabase::NextTable() returns NO (false) when no more tables exist for the current database. // Display all tables in a database void DisplayTables(CTDatabase &ADatabase) {
CTString Name; CTString Path; if (ADatabase.FirstTable(Name, Path)) do {
printf(“Table: %s Path: %s\n”, Name.c_str(), Path.c_str()); } while (ADatabase.NextTable(Name, Path); } |
|||