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.

ZWRITEZWRITE with ArgumentsThe following example shows ZWRITE displaying two of the variables that were set in theprevious example:SET x=100SET y=80SET d=x+yZWRITE d,yreturns:d=180y=80By comparison, WRITE d,y displays the variables values without identifiers or line breaks:18080.ZWRITE Displaying a Global in the Current NamespaceThe following example shows ZWRITE displaying the contents of a subscripted globalvariable (located in the current namespace):ZNSPACE "SAMPLES"ZWRITE ^CinemaooFilmD(17)returns:^CinemaooFilmD(17)=".A complex history of struggle and redemptionCooking with Jane Austen 5 u R"ZWRITE Displaying a Global in Another NamespaceThe following example shows ZWRITE using extended global reference to display thecontents of a subscripted global variable located in another namespace called SAMPLES:ZNSPACE "USER"ZWRITE ^["SAMPLES"]CinemaooFilmD(17)ZWRITE Displaying a Global and DescendantsThe following example shows ZWRITE displaying the contents of a subscripted globalvariable and all its descendent nodes:ZNSPACE "SAMPLES"ZWRITE ^CinemaooFilmCategoryDreturns:<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 413

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

Saved successfully!

Ooh no, something went wrong!