Field Reference

Gentlemen, Can I refer to a particular field using the field no. For example instead of Item.“No.”, I can use Item[1] or Item.Description → Item[3]. Is there a function to do this. Thank you in advance. Regards, Marlon

quote:


Originally posted by m_quial
Gentlemen, Can I refer to a particular field using the field no. For example instead of Item.“No.”, I can use Item[1] or Item.Description → Item[3]. Is there a function to do this.


Not in my knowledge, although some C/AL functions might work with the field name as well as the number. Anyway, inside Navision objects all the involved variables are referred to by number. If you change the name of a field in a table and recompile the table, the objects using that field keep working. If you change a field number all goes messy. [:)] Anna

In 3.60 you can use the RecordRef and FieldRef datatypes to access tables and fields in this way.