Insert

Native Pascal, workflow preparation

Description

Inserts Value into an array at the zero-based Index; existing elements at or after Index shift up, and Index = Count appends. Ownership of the child transfers to the array as with Add.

Syntax

Delphi

Procedure TPLWorkflowJSON.Insert(Index: Integer; Value: TPLWorkflowJSON);

Parameters

IndexZero-based insertion position, 0 through Count
ValueChild node to insert; must pass the same ownership checks as Add

Remarks

Raises an exception when this value is not an array or Index is outside 0 .. Count.

See also

WorkflowDataTools, ProbeWorkflowRequest