11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ZKILLZKILLDeletes a node while preserving the node's descendants.ZKILL:pc array-node,...ZK:pc array-node,...Argumentspcarray-nodeOptional — A postconditional expression.A local variable, a process-private global, or a global that is an arraynode, or a comma-separated list of local, process-private global, orglobal array nodes.DescriptionThe ZKILL command removes the value of a specified array node without killing that node'sdescendants. In contrast, the KILL command removes the value of a specified array nodeand all of that node's descendants. An array node can be a local variable, a process-privatevariable, or a global variable.ArgumentspcAn optional postconditional expression. <strong>Caché</strong> executes the command if the postconditionalexpression is true (evaluates to a non-zero numeric value). <strong>Caché</strong> does not execute the commandif the postconditional expression is false (evaluates to zero). For further details, referto Command Postconditional Expressions in Using <strong>Caché</strong> <strong>ObjectScript</strong>.array-nodeA local, process-private global, or global array node. You can specify a single array node, ora comma-separated list of array nodes. For further details on subscripts and nodes, refer toGlobal Structure in Using <strong>Caché</strong> Multi-Dimensional Storage.ExampleIn this example, the ZKILL command deletes node a(1), but does not remove node a(1,1).<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 393

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!