You have that information on the DictField class, there you can get a label of a certain field.
DictField dictField;
;
dictField = new dictField(tableNum(InventTable),fieldNum(InventTable,ItemId));
info(dictField.label());
You have that information on the DictField class, there you can get a label of a certain field.
DictField dictField;
;
dictField = new dictField(tableNum(InventTable),fieldNum(InventTable,ItemId));
info(dictField.label());