This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
if (#MyFirstObject = #MySecondObject)
* the two are the same
endif
In .NET, I could override Equals and GetHashCode or implement a Comparer. Is there something similar in LANSA or am I stuck doing property comparison?
Such as
if (#CurrentPlan *IsNot *NULL)
if ((#CurrentPlan.TypeCode = #lItem.TypeCode) *AndIf (#CurrentPlan.ControlNumber = #lItem.ControlNumber))
* they are the same
endif
endif