Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTTable::Clone

Syntax

void Clone(CTTable &target, const CTString& Name)

Parameters

  • target [in] - The new table handle
  • Name [in] - The new table name (without file extension)

Description

Creates a new table with the attributes from an existing source table. This does NOT create a duplicate table -- records are not copied.

Note: This function is only for a CTSESSION_CTREE session or for cloning tables from/into different databases.

Return

None. Throws a CTException on error. Typical CreateTable() exceptions are possible.

See also

CTTable::CreateTable()

TOCIndex