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.
- Return type: CNM_ReturnTypes.ComparationResult
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| object1 | IObject | first object to compare | input |
| object2 | IObject | second object to compare | input |
Code
Declaration
METHOD compare :CNM_ReturnTypes.ComparationResult
VAR_INPUT
(* first object to compare*)
object1 :IObject;
(* second object to compare*)
object2 :IObject;
END_VAR