*menuoptionenum()

Specifies that the value of an attribute is defined by a previously defined *enumeration() command.

Syntax

*menuoptionenum (attribute, enumeration)

Type

HyperMesh Card Previewer Command

Inputs

attribute
The name of the integer attribute that holds the value.
enumeration
The name of a previously defined enumeration. The value stored in attribute is converted to an integer based on the selection's place in the enumeration and has a value from one to N (where N is the number of items in the enumeration).

Example

*enumeration(Numbers,One,Two,Three)
*menuoptionenum($Numbers_Attribute,Numbers)
*menucase(1)
*menustring("One (1)")
*menucase(2)
*menustring("Two (2)")
*menucase(3)
*menustring("Three (3)")
*menuoptionend()

For each value specified in the *enumeration() statement that enumeration references, you must have a *menucase() statement. All of the commands between the *menucase()statement that are equal to the value stored in attribute and the next *menucase() or *menuoptionend()statement are executed.

The attribute's value is displayed in the options (bottom) portion of the menu as a selector. You can choose from the values in the enumeration.