Detach

Native Pascal, workflow preparation

Description

Removes the child at the zero-based Index and transfers it to the caller: the returned node keeps its content but is no longer owned or freed by this container, so the caller becomes responsible for freeing it. An out-of-range index returns Nil and changes nothing.

Syntax

Delphi

Function TPLWorkflowJSON.Detach(Index: Integer): TPLWorkflowJSON;

Parameters

IndexZero-based child index

Return values

TPLWorkflowJSONThe removed child, now caller-owned; Nil when Index is outside 0 .. Count-1

See also

WorkflowDataTools, ProbeWorkflowRequest