static void ShyamgetEnumValues(Args _args)
{
EnumId enumId = enumNum(RefrigerationType);
SysDictEnum dictEnum = new DictEnum(enumId);
int countx = dictEnum.values();
int counter ;
Container ContainerTypeCon;
for(counter = 0; counter <= countx; counter ++)
{
// You can use the number of method exposed by SysDictEnum class
//dictEnum.name(counter);
//info(strFmt("%1",dictEnum.index2Value(counter)));
// dictEnum.index2Symbol(counter)
// dictEnum.index2Label(counter)
//ContainerTypeCon=conIns(ContainerTypeCon, counter, dictEnum.index2Value(counter));
ContainerTypeCon+=dictEnum.index2Label(counter); //This is faster than above statement
info(strFmt("%1",conpeek(ContainerTypeCon,counter)));
// info(strFmt("%1",dictEnum.index2Label(counter)));
}
//Reset Container
ContainerTypeCon=conNull();
}
All Container Topics - Reference
{
EnumId enumId = enumNum(RefrigerationType);
SysDictEnum dictEnum = new DictEnum(enumId);
int countx = dictEnum.values();
int counter ;
Container ContainerTypeCon;
for(counter = 0; counter <= countx; counter ++)
{
// You can use the number of method exposed by SysDictEnum class
//dictEnum.name(counter);
//info(strFmt("%1",dictEnum.index2Value(counter)));
// dictEnum.index2Symbol(counter)
// dictEnum.index2Label(counter)
//ContainerTypeCon=conIns(ContainerTypeCon, counter, dictEnum.index2Value(counter));
ContainerTypeCon+=dictEnum.index2Label(counter); //This is faster than above statement
info(strFmt("%1",conpeek(ContainerTypeCon,counter)));
// info(strFmt("%1",dictEnum.index2Label(counter)));
}
//Reset Container
ContainerTypeCon=conNull();
}
All Container Topics - Reference
Comments
Post a Comment