append
Short summary
This method adds the given CNM_AbstractObject.IObject to the end of the list.
Example:
Given a list that looks like this: (Head->) A B C (<- End),
calling append(D) on this list will place the D at the and,
making it the new End: (Head->) A B C D(<- End)
Return: CNM_ReturnTypes.SingleExecutionResult.SUCCESS: new Container 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 appended | input |
Code
Declaration
METHOD append :CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*The object to be appended*)
object :CNM_AbstractObject.IObject;
END_VAR