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.

System and Other FunctionsZNSPACE "samples"SET x=^CinemaooFilmCategoryI(-1)LoopSET a=$ZNEXT(x)IF a=-1 {WRITE !,"All done"QUIT }ELSE {SET x=aWRITE !,aGOTO Loop }The following example uses $QUERY to list the subscripts of a global:ZNSPACE "samples"SET x=^CinemaooFilmCategoryI("")LoopSET a=$QUERY(x)IF a="" {WRITE !,"All done"QUIT }ELSE {SET x=aWRITE !,aGOTO Loop }See Also• $QUERY function$ZORDERReturns the full reference for the next array node subscript.$ZORDER(variable)ParametervariableName of a subscripted local or global variable, or the null string. It canbe a value, a variable, or an expression.Description$ZORDER returns the full reference for the next array node subscript that follows the nodeindicated by the variable parameter. The variable can be a local or global subscripted arraynode. The returned subscript is at the same level as the one for the specified variable. If thereis no subsequent array node at the variable's node level, $ZORDER returns the null string("").552 <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!