Thursday, May 5, 2016

Print table fields

static void PrintTableFieldName(Args _args)
{
    SysDictTable    dictTable = SysDictTable::newTableId(tableNum(CustParameters));
    SysDictField    dictField;
    Set             fields = dictTable.fields(true, true, true);
    SetEnumerator   setEnum = fields.getEnumerator();

    while (setEnum.moveNext())
    {
        dictField = setEnum.current();
        info(dictField.label());
    }
}

No comments:

Post a Comment