11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

You can only use the ZREMOVE command when you enter it at the programmer promptor when you call it using an XECUTE command. It should not be coded into the body of aroutine because its operation would effect the execution of that routine.Only the local copy of the routine is affected, not the routine as stored on disk. To store themodified code, you must use the ZSAVE command to save the routine.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>.lineref1ZREMOVEThe line to be removed, or the first in a range of lines to be removed. It can take any of thefollowing forms:+offsetlabellabel+offsetSpecifies a line number within the routine.Specifies a label within the routine. ZREMOVE erases only thelabel line itself. This includes any code that follows the label onthat line.Specifies a label and the number of line to offset within thelabeled section.You can use lineref1 to specify the beginning of a range of lines (lineref1:lineref2). The onlyrequirement is that the first location appear before the second in your routine.If you omit lineref1, ZREMOVE deletes the entire current routine.lineref2The last in a range of lines to be removed. Specify in any of the same formats used for lineref1.The colon prefix (:) is mandatory.ExamplesThis command erases the fourth line within the current routine.ZREMOVE +4<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 403

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

Saved successfully!

Ooh no, something went wrong!