remove
Short summary
Function to remove an object from the tree
Return: SUCCESS: if remove could be made
ABORTED: if object wasn't in the tree
ERROR: if object wasn't valid
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| object | CNM_CollectionInterfaces.CNM_AbstractObject.IObject | The object that should be removed | input |
Code
Declaration
METHOD remove : CNM_CollectionInterfaces.CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(* The object that should be removed *)
object : CNM_CollectionInterfaces.CNM_AbstractObject.IObject;
END_VAR
Implementation
remove := THIS^.tree.remove(object := object);