Skip to main content

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

Parameters

NameTypeCommentKind
objectCNM_AbstractObject.IObjectThe object to be prependedinput

Code

Declaration

METHOD prepend :CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*The object to be prepended*)
object :CNM_AbstractObject.IObject;
END_VAR