fieldId2Name Function

Retrieves a string that represents the name of a field specified by a table ID number and a field ID number.


str fieldId2Name(int tableid, int fieldid)

Parameter

Description

tableid

The ID number for the table.

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

fieldid

The ID number of the field.

The name of the field.

To return a printable version of the field name, use fieldId2PName Function.

The following example sets fn to the field name of the 7th field in the Customer (CustGroup) table.

static void fieldId2NameExample(Args _arg)
{
    str fn;
    ;
    fn = fieldId2Name(tableName2Id("Customer"),7);
}

Community Additions

ADD
Show: