type-name : enum-memberThe type name of a .NET enumeration whose member you want to access. Specify an enumeration type name using the syntax as described in the Type-name syntax reference entry. With an appropriate USING statement, you can specify an unqualified .NET enumeration name.To set the background color of a button (button1) to the known system color, aqua, you might enter this ABL code to set the BackColor button property to the value of the appropriate System.Drawing.KnownColor enumeration member:
button1:BackColor = System.Drawing.KnownColor:Aqua.
Because, in ABL, .NET enumeration members are objects, you cannot operate on them directly using ABL operators the way .NET languages use built-in operators to operate on enumeration values. To allow you to perform .NET enumeration operations, ABL supports an OpenEdge .NET class, Progress.Util.EnumHelper. The Progress.Util.EnumHelper class contains static methods that you can use to perform the relational, arithmetic, and bit-wise operations commonly applied to enumeration members in .NET.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |