Skip to content

Instantly share code, notes, and snippets.

@noakesey

noakesey/xpp

Created Dec 6, 2018
Embed
What would you like to do?
SysDictEnum dictEnum = new SysDictEnum(enumNum(ProjSalesPriceMarkup));
int enumValueCount = dictEnum.values();
for (int enumValueIndex = 0; enumValueIndex < enumValueCount; enumValueIndex++)
{
ProjSalesPriceMarkup value = dictEnum.index2Value(enumValueIndex);
str actual = dictEnum.index2Label(enumValueIndex);
str expected = strMin();
switch (value)
{
case ProjSalesPriceMarkup::No :
expected = "@SYS26062";
break;
case ProjSalesPriceMarkup::Yes :
expected = "@SYS80120";
break;
case ProjSalesPriceMarkup::MarkupPct :
expected = "@SYS78909";
break;
default :
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.