indexName2Id Function

Retrieves the ID of an index.


int indexName2Id(int tableid, str indexname)

Parameter

Description

tableid

The ID of the table to which the index belongs.

indexname

The name of the index.

The ID of the index.

static void indexName2IdExample(Args _arg)
{
    indexid idx;
    tableid id;
    ;
 
    id  = tableName2Id("Address");
    idx = indexName2Id(id, "AddrIdx");
    print "Index ID for index name AddrIdx of table Address is " 
        + int2Str(idx);
    pause;
}

Community Additions

ADD
Show: