Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTTable::SetIndexFileName

Syntax

void CTTable::SetIndexFileName(NINT IndexNumber, const CTString* path,

const CTString* filename);

void CTTable::SetIndexFileName(const CTString& IndexName, const CTString* path,

const CTString* filename);

Parameters

These overloaded methods identify the index by number (IndexNumber) or by name (IndexName).

  • path specifies the directory location of the index file. A NULL value for path indicates that the index file is to be located in the same directory as the data file.
  • filename specifies the name of the index file. If filename is NULL, the index file name is cleared.

An application can change the current index file extension by calling the CTTable::SetIndexExtension() method.

Description

Sets the physical file name for the index.

Return

None.

See also

CTTable::GetIndexFileName(), CTTable::SetIndexExtension(), CTIndex::GetIndexFileName()

TOCIndex