Here is the sample code useful to get the Enum label based on the passed enum value (which is integers)
int Mth,yearselected;
str Monyr;
DictEnum de;
de = new DictEnum(enumName2Id(“MZK_MonthYear”)); //Enum Name
Mth = mthOfYr(today()); //need to get label for the value of current month
Monyr = de.index2Name(Mth); //Passing the value to get the Enum
No comments:
Post a Comment