Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTSession.GetDatabaseCount

Syntax

int GetDatabaseCount( )

Parameters

This method has no parameters.

Description

Retrieves the number of databases in the session dictionary. Notice that because GetDatabaseCount() changes the "current record pointer", this method should not be used in the middle of a search. The best approach is to use it before the initial loop to retrieve to total of databases in the session, then use in connection with FirstDatabase() and NextDatabase() to retrieve all database names and paths.

Return

GetDatabaseCount() returns the number of databases in the session dictionary.

See Also

FirstDatabase(), NextDatabase()

TOCIndex