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.

<strong>Caché</strong> <strong>ObjectScript</strong> Functions;; This routine outputs the entire contents of a global array.;; Specifically, it asks you to supply the name of the array;; and then writes out the current values for all existing;; nodes that contain data. It ignores any nodes;; that do not contain data.StartREAD !,"Array name: ",ary QUIT:ary=""IF ary="?" { GOTO Start }FOR i=1:1:5 {WRITE !,$TEXT(+i) }NotesArgument IndirectionIndirection of the entire $TEXT argument is a convenient way to make an indirect referenceto both the line and the routine. For example, if the variable ENTRYREF contains both a linelabel and a routine name, you can reference the variable:$TEXT(@ENTRYREF)rather than referencing the line and the routine separately:$TEXT(@$PIECE(ENTRYREF,"^",1)^@$PIECE(ENTRYREF,"^",2))Edit PointerIf you specify a routine in $TEXT other than the current routine, <strong>Caché</strong> resets the edit pointer(current line location) to +0. This can affect execution of the ZINSERT command. You canuse $ZNAME to determine the current routine.See Also• Indirection in Using <strong>Caché</strong> <strong>ObjectScript</strong>306 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!