Enum Function

Syntax

Enum(String enumType, [String/Number value])

Return Value

Enumeration

An enumeration with the specified type and value.

Purpose

Create an enumeration with the specified type and value.

Note If the optional value is not specified, the returned enumeration has the default value.

Parameters

enumType as String

Specifies the type of enumeration to create.

value as String or Number

(Optional) Specifies the value of the enumeration as a string or number. The value will be coerced to the specified enumeration data type.