Skip to main content

resetLocalModes

Short Summary

This method cleares overwritten modes for a node and all of its subnodes.

Parameters

none

Code

Declaration

METHOD FINAL  resetLocalModes : CNM_ReturnTypes.SingleExecutionResult

Implementation

resetLocalModes := CNM_ReturnTypes.SingleExecutionResult.SUCCESS;
IF THIS^.isObjectValid(THIS^.subNode) THEN
THIS^.subnode.reset();
WHILE (THIS^.subnode.moveNextNode()) DO
IF (THIS^.subnode.resetLocalModes() = CNM_ReturnTypes.SingleExecutionResult.ABORTED ) THEN
resetLocalModes := CNM_ReturnTypes.SingleExecutionResult.ABORTED;
END_IF
END_WHILE
END_IF