CompareTo( ) method
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
?).Return type: INTEGER
Access: PUBLIC
Applies to: Progress.Lang.Enum class
Syntax
|
- otherEnum
- A reference to a
Progress.Lang.Enuminstance. The enum type of this instance must be the same as the enum type of the instance the method is invoked on.
The following example compares two enum instances of type Days:
|
|
Notes
- The method raises error if the two enum instances are not the same type.
- You can also use the >, <, =, <>, >=, and <= operators to perform the same type
of comparison. However, the enum type must be known at compile time for use with those
operators. You can use this method if you need more flexibility, because this method can
compare references of type
Progress.Lang.Enum.