Subscriber portal
Retrieves the field ID of the table field specified by a table ID number and a field ID number.
int fieldName2Id(int tableid, str fieldname)
Parameter
Description
tableid
The ID number for the table.
fieldname
The name of the field.
The ID of the field specified by tableid and fieldname.
static void fieldName2IdExample(Args _arg) { int id; ; id = fieldName2Id(tableName2Id("Address"), "Name"); // Returns 6. Name is the 6th field in the Address table. print id; pause; }