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
- indexId
Type: IndexId Extended Data Type
The one-based index for the index for which the name is being retrieved.
- 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));
}
}