Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTRecord.SetDefaultIndex

Syntax

void SetDefaultIndex(int indexno)

void SetDefaultIndex(String name)

Parameters

  • indexno [in] The new default record index number.
  • name [in] The new default record index name.

Description

Sets the new record default index. Unless this function is called, the first index is the default.

Return

None.

Example

myRecord->SetDefaultIndex("name");

// change the default index to "name"

myRecord->First();

// find the first record ordered by "name"

See Also

GetDefaultIndex()

TOCIndex