Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

Find active Database by UID

The overloaded CTSession::FindActive() locates an active database given its UID number and returns the database object pointer. The following example shows how to check if a database is active using its UID number.

// check if database is active, by UID

CTBOOL IsActiveDatabase(CTSession &ASession, ULONG uid)

{

return (ASession.FindActive(uid) != NULL) ? YES : NO;

}

TOCIndex