How to go to the next enum value? AX 2012

Hi guys,

I want to do a cycle for each enum value,some function that will scroll the value of the variable?

something like this:

while(nextEnumValue(enumType))

{

}

thanks

Could you elaborate ?

How about this:

i = 0;

While( i < enumCnt(enumType))

{

}

I want to use the value of the enum (A,B,C) in a select statment

while (nextEnumValue(enumType))
{

select myTable

where myTable.enumType == enumType; (in the first cycle the value is A, then B, and the last C)

info(strFmt("%1",myTable.enumType));

}

Use DictEnum.index2value(). You’ll find an example right in the documentation.

thank you Martin Dráb

I was already using this form, but wanted to know if there was a simpler function.