Returns an instance of the enumeration type for the specified enumeration member.
Specifies a data element that is assigned the returned value. The AVM checks that the enum instance returned can be assigned to the target, and the AVM raises an error if the data types aren't compatible.
Specifies the name of an ABL or .NET enumeration type that defines the member. This is a CHARACTER expression that the AVM evaluates to the type name of an enumeration type at runtime.
In the following code fragment,
Direction is an enum with a member defined for each of the four cardinal directions (see the
ENUM statement for an example of how
Direction could be defined), and
cNeededDirection is a string that evaluates to the name of one of the members defined by
Direction. The code then uses DYAMIC-ENUM to set
myDirection as an object reference to an instance of the member specified by
cNeededDirection: