prepend
Short summary
This method adds the given obejct to the end of the list. Example: Given a list that looks like this: (Head->) A B C (<- End), calling prepend(D) on this list will place the D at start, making it the new Head: (Head->) D A B C (<- End)
Return: CNM_ReturnTypes.SingleExecutionResult.SUCCESS: new Container not needed / could be allocated and data was copied
CNM_ReturnTypes.SingleExecutionResult.ERROR: new Container couldn't be allocated, container left unchanged
CNM_ReturnTypes.SingleExecutionResult.ABORTED: NULL object or the list itself was passed
- Return type: CNM_ReturnTypes.SingleExecutionResult
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| object | CNM_AbstractObject.IObject | The object to be prepended | input |
Code
Declaration
METHOD ABSTRACT prepend :CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*The object to be prepended*)
object :CNM_AbstractObject.IObject;
END_VAR