1 Haziran 2012 Cuma
Working with Enum values / Enum değerleri arasında gezinmek
Hi,
To work with enum values you need to use DictEnum class. After you get the count you can do whatever you want.
Have a nice AX day,
Alper.
EnumId enumId = enumNum(SalesStatus);
DictEnum dictEnum = new DictEnum(enumId);
int count = dictEnum.values();
int counter
for(counter = 0; counter < count; counter ++)
{
// You can use the number of method exposed by DictEnum class
// dictEnum.name(counter)
// dictEnum.index2Value(counter)
// dictEnum.index2Symbol(counter)
// dictEnum.index2Label(counter)
}
Etiketler:
Ax 2009,
Axapta,
Axapta 2009,
Dict,
DictEnum,
Dynamics AX 2009,
enum,
enumnum,
index2,
index2label,
index2symbol,
index2Value,
name
Kaydol:
Kayıtlar (Atom)