Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the enumeration value of the item that is referenced by its label.
Syntax
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.
Remarks
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.