DictEnum.name2Value Method [AX 2012]

Returns the enumeration value of the item that is referenced by its label.

public int name2Value(str name)

Run On

Called

Parameters

name
Type: str
The label for the enumeration for which the enumeration value is being retrieved.

Return Value

Type: int
The enumeration value for name; 255 if name is not a valid label of an enumeration.

For backward compatibility with earlier versions of Microsoft Dynamics AX, name refers to the label. Enumeration items that do not have labels cannot be found by using the DictEnum::name2Value method.

Community Additions

ADD
Show: