short GetDatabaseCount( );
throw( CDaoException, CMemoryException );
Return Value
The number of open databases in the workspace.
Remarks
Call this member function to retrieve the number of DAO database objects in the workspace’s Databases collection — the number of open databases in the workspace. GetDatabaseCount is useful if you need to loop through all defined databases in the workspace’s Databases collection. To obtain information about a given database in the collection, see GetDatabaseInfo. Typical usage is to call GetDatabaseCount for the number of open databases, then use that number as a loop index for repeated calls to GetDatabaseInfo.
For more information about obtaining database information, see the article DAO Collections: Obtaining Information About DAO Objects in Visual C++ Programmer's Guide.