DictEnum.value2Label Method [AX 2012]

Returns the label of a specified enumeration value.

public str value2Label(int value)

Run On

Called

Parameters

value
Type: int
The integer value for the enumeration for which the label is being retrieved.

Return Value

Type: str
The label for value; an empty string if there is no label for value or value is not a valid enumeration.

Enumeration items are not required to have a label. This method cannot be used to determine whether a value exists in the enumeration. To determine whether a value exists in the enumeration, use the DictEnum::value2Symbol method.

Community Additions

ADD
Show: