DictEnum::value2id Method [AX 2012]

Returns the enumeration ID of a specified value.

client server public static int value2id(anytype value)

Run On

Called

Parameters

value
Type: anytype
The value for which the enumeration ID is being queried. The value parameter can be of any type.

Return Value

Type: int
The enumeration ID of value if value is an enumeration; otherwise, 0 (zero).

The value parameter can be of any type.

Show: