indexStr Function

Converts to the string representing the index specified by tableid and indexid.


str indexStr(int tableid, int indexid)

Parameter

Description

tableid

The ID number of the table that contains the index.

indexid

The ID number of the index.

Using indexStr instead of just writing the index name as a literal string makes it possible for MorphX to check that the index specified is in fact a legal index for the specified table.

The following example assigns the value NameAliasIdx to s.

static void fieldStrExample(Args _arg)
{
    str a;
    ;
    a = indexStr(CustTable, PhoneIdx);
    print a;
    pause;
}

Community Additions

ADD
Show: