Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTTable.AddIndex

Syntax

CTIndex AddIndex( String name, KEY_TYPE KeyType,

bool AllowDuplicates, bool NullFlag)

Parameters

  • name [in] The index name to add to the table.
  • KeyType [in] The index type. Allowed types are:
    • KEY_TYPE. FIXED_INDEX
    • KEY_TYPE.LEADING_INDEX
    • KEY_TYPE.PADDING_INDEX
    • KEY_TYPE.LEADPAD_INDEX
    • KEY_TYPE.ERROR_INDEX
  • AllowDuplicates [in] The flag indicating if the index accepts duplicates or not.
  • NullFlag [in] The flag indicating if Null fields are allowed or not.

Description

Adds a new index to the table.

Return

None.

See Also

AddField(), DelIndex(), HasNullFieldSupport()

TOCIndex