Previous Topic

Next Topic

Find Table

CTDatabase::FindTable() locates a specific table given the table name and, if the table exists, retrieves the table path. If a table cannot be found, CTDatabase::FindTable() returns NO (false).

// return YES if table exist or NO if table does not exit
CTBOOL TableExist(CTDatabase &ADatabase, CTString& tblName)
{
   CTString tblPath;

   return ADatabase.FindTable(TblName, tblPath);
}