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