Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

create enum type statement

Creates a new enumerated type in the context type model. If no type model is in context, an error occurs.

The created enumerated type is put in context.

Syntax

create enum type Name
    [specializes GeneralizedEnumType]
    [in Container]

Element Type Optionality Notes
Name Expression<Identifier> or Expression<Dictionary<Identifier>> Mandatory. Specifies the name of the new enumerated type, either as an identifier or in multilingual dictionary format.
GeneralizedEnumType Enumerated type name Optional. Specifies the enumerated type from which the new enumerated type will specialize.
Container Package name Optional. Specifies the package that will contain the new enumerated type, or "none" for no package.

Returns

The enumerated type just created.

Examples

Intent Code
Create a new enumerated type with a simple name create enum type Colours;
Create a new enumerated type with a multilingual name create enum type [en_GB: Colours, es_ES: Colores];
Create a new enumerated type in a package create enum type Colours in Design.Graphics;

See Also


Contents distributed under a Creative Commons Attribution 4.0 International License · About · Terms of Use · Contact Us · last updated on 08 October 2020