CTDatabase.NextTable() retrieves the name and path of the next table in a database. CTDatabase.NextTable() returns false (false) when no more tables exist for the current database.
// Display all tables in a database
void DisplayTables(CTDatabase ADatabase)
{
StringBuilder Name = new StringBuilder();
StringBuilder Path = new StringBuilder();
if (ADatabase.FirstTable(out Name, out Path))
{
do
{
Console.Write("Table: {0} Path: {1}\n", Name.ToString(),
Path.ToString());
}
while (ADatabase.NextTable(out Name, out Path);
}