Get FieldId from Field Name (String)

 To get FieldId from a Field name, where the Field name is a string type you can use fieldname2id() method

int fieldId = fieldname2id(tableNum(Salestable), 'SalesId');

Comments