Try OpenEdge Now
skip to main content
ABL Reference
Class Properties and Methods Reference : Add( ) method (Progress.Util.EnumHelper)
 

Add( ) method (Progress.Util.EnumHelper)

(Windows only; GUI for .NET only)
Adds the underlying values of the specified enumeration types and returns the sum as a new instance.
Return type: System.Enum class (from the .NET Framework)
Access: PUBLIC STATIC
Applies to: Progress.Util.EnumHelper class

Syntax

EnumHelper:Add ( INPUT enum1 AS CLASS System.Enum,
                 INPUT enum2 AS CLASS System.Enum )
enum1
Static reference to an enumeration value, or a reference to an enumeration type instance.
enum2
Static reference to an enumeration value, or a reference to an enumeration type instance.
Specify a static reference to an enumeration value using the following syntax:
enum-type:enum-member
Where enum-type is the type name of the enumeration and enum-member is a member name of the enumeration. For example:
System.Windows.Forms.AnchorStyles:Bottom
If you want to use the returned System.Enum instance as a different enumeration type, you must cast the instance to that specific type using the CAST function.
For information on the System.Enum class and .NET enumeration types, refer to the .NET Framework class library.

See also

CAST function