Skip to main content

compare

Short summary

This method compares two objects, this is needed for sort orders.

Return:SMALLER: object1 precedes in order, EQUAL: object1 and object2 at the same position in order, GREATER: object1 is after in order.

Parameters

NameTypeCommentKind
object1IObjectfirst object to compareinput
object2IObjectsecond object to compareinput

Code

Declaration

METHOD compare :CNM_ReturnTypes.ComparationResult
VAR_INPUT
(* first object to compare*)
object1 :IObject;
(* second object to compare*)
object2 :IObject;
END_VAR