Try OpenEdge Now
ABL Reference
Class Properties and Methods Reference
:
GetValue( ) method
GetValue( ) method
Returns the underlying numeric value of the enumeration member.
Return type:
INT64
Access:
PUBLIC FINAL
Applies to:
Progress.Lang.Enum class
Syntax
GetValue ( )
For example, the code shown below compares a variable to the underlying values of the
MAX
and
MIN
members:
ENUM Range:
DEFINE ENUM MIN = 255
MAX = 2147483647.
END NUM.
DEFINE VARIABLE ix AS INT64 NO-UNDO.
IF ix < Range:MIN:GetValue() OR ix > Range:MAX:GetValue() THEN ...
Notes
For a flag enum instance that represents multiple flags set, the method returns the single numeric value that represents that combination of flags.
See also
ENUM statement