fieldStr Function

Returns a string representing the field name of the field specified.


str fieldStr(int tableid, int fieldid)

Parameter

Description

tableid

The ID number for the table.

Note   Use the tableName2Id function to specify the ID of a table.

fieldid

The ID number of the field.

Note   Use the fieldName2Id function to specify the ID of a field.

The following example assigns the name of the CashDisc field to MyTxt.

static void fieldStrExample(Args _arg)
{
    str MyTxt;
    ;
    MyTxt = fieldStr(CustTable, CashDisc);
    print myTxt;
    pause;
}

Community Additions

ADD
Show: