fieldNum Function

Returns the ID number of a field.


int fieldNum(tableName, fieldName)

Parameter

Description

tableName

The name of the table.

fieldName

The name of the field.

The ID of the specified field.

The following example prints the number of the Phone field in the CustTable table.

static void fieldNumExample(Args _args)
{
    ;
    // Prints 4. Phone is the 4th field in the CustTable table.
    print fieldNum(CustTable, Phone);
    pause;
}

Community Additions

ADD
Show: