Skip to main content

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

NameTypeCommentKind
objectCNM_CollectionInterfaces.CNM_AbstractObject.IObjectThe object that should be removedinput

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);