fieldPName Function

Returns the printable name (the label) of the specified field.


int fieldPName(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.

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

The label of the field.

The following example prints the label of the CashDisc field: "Cash discount".

static void fieldPNameExample(Args _arg)
{
    str a;
    ;
 
    a = fieldPname(CustTable, CashDisc);
    print a;
    pause;
}

Community Additions

ADD
Show: