appendNodeList
Short Summary
This method adds all elements of the given collection to the end of this list.
Example
For the list1: A B C and list2: D E F will be after list1.appendCollection(list2):
A B C D E F. Notice the elements are still in the same order they where befor on each subsection.
Example
( appending one station to another so they can be handled with one operation mode handler *))IF (station1.nodes.appendNodeList( station2.nodes) = SUCCESS) THEN
( do something with the new nodes *))END_IF
- Return type: CNM_ReturnTypes.SingleExecutionResult
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| nodes | INodeList | the node list that should be appended | input |
Code
Declaration
IF (station1.nodes.appendNodeList( station2.nodes) = SUCCESS) THEN
(* do something with the new nodes *)
END_IF
*)
METHOD appendNodeList : CNM_ReturnTypes.SingleExecutionResult VAR_INPUT (* the node list that should be appended *) nodes :INodeList; END_VAR