Try OpenEdge Now
skip to main content
ABL Reference
Class Properties and Methods Reference : Equals( ) method
 

Equals( ) method

Compares the object reference for the current class instance to the specified object reference. If the object references (regardless of type) point to the same object instance, this method returns TRUE. Otherwise, it returns FALSE. When applied to enums, the method compares the object reference for the current instance to the specified enum instance. If the object reference points to an instance of the same enum type and the same underlying numeric value, this method returns TRUE. If the object reference and the specified enum instance are of the same enum type but have different underlying numeric values, it returns FALSE. If the object reference and enum instance are of different enum types or the object reference is to a class instance, the method raises an error.
Return type: LOGICAL
Access: PUBLIC
Applies to: Progress.Lang.Object class, System.Object class (from the .NET Framework)

Syntax

Equals ( INPUT OtherObj AS Progress.Lang.Object )
OtherObj
The other object reference with which to compare.