prependCollection
Short summary
This method adds all elements of the given collection to the start of this list.
Example:
For the list1: A B C and list2: D E F
list1 will be D E F A B C after list1.prependCollection(list2).
Notice the elements are still in the same order they were befor on each subsection.
Return: CNM_ReturnTypes.SingleExecutionResult.SUCCESS: prepend was successful
CNM_ReturnTypes.SingleExecutionResult.ERROR: collection to prepend didn't fit in old container, and new container couldn't be allocated
CNM_ReturnTypes.SingleExecutionResult.ABORTED: NULL object or this list was passed
- Return type: CNM_ReturnTypes.SingleExecutionResult
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| collectionToPrepend | ICollection | The collection to be prepended | input |
Code
Declaration
METHOD prependCollection :CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*The collection to be prepended*)
collectionToPrepend :ICollection;
END_VAR