void clicked()
{
str strValue;
DictEnum dictEnum;
EnumId enumId;
AnyType anyTypeValue;
AcquisitionMethod acqMethodType;
super();
enumId = enumNum(AcquisitionMethod);
dictEnum = new DictEnum(enumId);
anyTypeValue = dictEnum.name2Value(strValue);
element.createNew(anyTypeValue);
}
Can workout this way also ---->
int Value;
int indexValue;
dictEnum = new DictEnum(enumNum(AcquisitionMethod));
value = dict.symbol2Value("Hour"); //Gets the value in int
{
str strValue;
DictEnum dictEnum;
EnumId enumId;
AnyType anyTypeValue;
AcquisitionMethod acqMethodType;
super();
enumId = enumNum(AcquisitionMethod);
dictEnum = new DictEnum(enumId);
anyTypeValue = dictEnum.name2Value(strValue);
element.createNew(anyTypeValue);
}
Can workout this way also ---->
int Value;
int indexValue;
dictEnum = new DictEnum(enumNum(AcquisitionMethod));
value = dict.symbol2Value("Hour"); //Gets the value in int
nameText = dict.value2Name(value); //Gets the localized Name (for example "Customer")
transactionType = str2enum(transactionType, nameText);
info(enum2str(transactionType));
dictEnum = new DictEnum(enumId);
anyTypeValue = dictEnum.index2Name(dictEnum.name2Value(strValue)); //gets the index value
No comments:
Post a Comment