Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTDatabase::FirstTable

Syntax

CTBOOL FirstTable(CTString& Name, CTString& Path)

Parameters

  • Name [out] The name of the first table in the database
  • Path [out] The path of the first table in the database.

Description

Locates the first table in a database.

Return

FirstTable() returns YES if one table is found, NO otherwise.

Example


pDatabase->Connect();

pDatabase->FirstTable(tbname, tbpath);

do

{ printf("\ntable name: %s",tbname.c_str(); }

while (NextTable(tbname, tbpath);


See also

NextDaTable(), FindTable(), GetFirstActive()

TOCIndex