Contact, Questions, Discussion
All contents and concepts
©Webware nach Maß
The Readable Programming Language - Handbook
Enumerations are usually defined by a "is one of" sentence, and used as a type for attributes.
All values must be defined in one sentence.
It is also possible to define anonymous or inline enumerations when defining an attribute:
Enumerated attributes with multiple values
It is possible to make lists of enumeration values.
Single value enumerated attributes are edited with a dropdown-menu (HTML select).
Multiple value enumerated attributes are edited with a series of checkboxes.
Defining each value of an enumeration with a numeric prefix allows to sort them and to compare them with numbers.