Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTDatabase::GetFirstActive

Syntax

CTTable* GetFirstActive( )

CTTable* GetFirstActive(VRLEN& ScanRec)

Parameters

  • ScanRec [out] Holds the state of the first or next scan, and is returned by the method if the prototype GetFirstActive(VRLEN& ScanRec) is used.

Description

Retrieves the first active table in the database. One table is active if it is open. If more than one scan must be done at the same time, GetFirstActive(VRLEN& ScanRec) must be used, with different ScanRec parameters for each scan.

Return

GetFirstActive() returns the table object pointer.

Example


pTable=pDatabase->GetFirstActive();

printf("\nFirst Active table: %s",

pTable->GetName().c_str());


See also

GetNextActive(), FirstTable(), IsActive()

TOCIndex