In some cases the values of a property are restricted to the values of a particular enumeration, a category of predefined values. For example, the color property, which is used in UI technologies, accepts a value of the ColorKind enumeration. Valid values of that enumeration include white, red, and others.
You can qualify an enumeration value with the enumeration name, so the preceding values can be stated as ColorKind.white and ColorKind.red. However, you need to qualify the enumeration value only when your code has access to a variable or constant whose name is the same as the enumeration value. For example, if a variable named red is in scope, the symbol red refers to the variable rather than to the enumeration value.
The following list of core enumerations includes the enumeration values. The explanations of those values occur elsewhere, in the context of the property or field in which the enumeration is meaningful.
The majority of enumerations are used with UI technologies; see the related reference links at the end of this topic for information about enumerations available with any technologies that you might be using.
The following enumeration values are available for assignment to the callingConvention property:
The I4GL value is valid for a Library part that is stereotyped with NativeLibrary. The value defines a method of passing data from an EGL library to a single, locally running DLL written in the C language. For additional details, see “Native library properties.”
The Expanded value is valid for a call statement that invokes a program and for a Program part that defines a called program. The value indicates that structured records can be received or passed as individual fields. The usage is especially appropriate when EGL-coded logic is interacting with EGL-coded logic that was migrated from Natural code. For additional details, see “Passing or receiving structured records as individual fields.”