indexStr Function

Converts the specified index to a string.


str indexStr(str tableid, str indexid)

Parameter

Description

tableid

The table that contains the index.

indexid

The index to convert.

A string that represents the specified index.

This function is a compile-time function, which is a metadata assertion function. Compile-time functions take arguments that represent entities in the Application Object Tree (AOT) and validate these arguments at compile time. They have no effect at run time.

The following example assigns the CashDisc index value to the myText variable.

static void fieldStrExample(Args _arg)
{
    str myText;
    ;

    myText = fieldStr(CustTable, CashDisc);
    Global::info(strfmt("%1 is the specified index.", myText));
}
/****Infolog Display
Message (09:11:52 am)
CashDisc is the specified index.
****/

Community Additions

ADD
Show: