DictTable.indexName Method

Returns the name of an index that is specified by the indexId parameter.

Syntax

public str indexName(IndexId indexId, [DbBackend db])

Run On

Called

Parameters

  • db
    Type: DbBackend Enumeration
    A DbBackend value that specifies the type of database back end; optional.

Return Value

Type: str
The name of the index that is specified by the indexId parameter.

Examples

The following example shows the retrieval of the names of the indexes for a table.

DictTable dt; 
int       i; 
 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    for (i=1; i <= dt.indexCnt(); i++) 
    { 
        print (dt.indexName(i)); 
    } 
 
}

See Also

DictTable Class

DictTable.indexCnt Method