static void GetFieldLable(Args _args)
{
CustTable custTable;
DictField dictField;
DictTable dictTable;
int field;
int fieldId;
int records;
str header, line;
;
dictTable = new DictTable(tablenum(custTable));
// Loop through the fields on the table
for (field=1; field <= dictTable.fieldCnt(); field++)
{
fieldId = dictTable.fieldCnt2Id(field);
dictField = new DictField(tablenum(custTable), fieldId);
info(strfmt("%1, ", dictField.label()));
}
}AX 查询表字段的Lable
最新推荐文章于 2023-10-18 21:46:12 发布
本文详细介绍了如何使用静态方法GetFieldLable获取指定表的字段标签,并通过实例展示了循环遍历表字段并创建相应标签的过程。文章旨在提供一种高效、简洁的实现方式,以提升开发效率。
841

被折叠的 条评论
为什么被折叠?



