Thursday, October 16, 2014

Print All Enum Values In Ax 2012

Print All Enum Values In Ax 2012

static void EnumIteration(Args _args)
{
    DictEnum DEnum;
    int      i;
    ;
    DEnum = new DictEnum(enumName2Id("Weekdays")); // Here You can mention your Enum Val.
    for (i=0; i < DEnum.values(); i++)
    {
        print DEnum.index2Label(i);
    }
    pause;
 
}

No comments:

Post a Comment