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.

Routine, Debugging, and Other CommandsThe following example loads the first routine from the device dev:OPEN devUSE devZLOADNotesRoutine Behavior with ZLOADIf you specify routine, <strong>Caché</strong> looks for the routine in the pool of routine buffers in memory.If the routine is not there, <strong>Caché</strong> loads the <strong>Caché</strong> <strong>ObjectScript</strong> object code version of theroutine into one of the buffers. The <strong>Caché</strong> <strong>ObjectScript</strong> source (intermediate) code remainsin the ^ROUTINE global of the current namespace, but is updated if you make edits and savethe changes. For example,ZLOAD TestThis example loads the object code version of the routine Test (if it is not already loaded).You can view and edit the contents of the ^ROUTINE global using the System ManagementPortal. Select the Globals option, then select the current namespace from the list of AvailableNamespaces.If you omit routine, <strong>Caché</strong> loads new lines of code that you enter from the current device,usually the keyboard until you terminate the code by entering a null line (that is, just press). This routine has no name until you save it with a subsequent ZSAVE command.ZLOAD and Language ModesWhen a routine is loaded, the current language mode changes to the loaded routine's languagemode. At the conclusion of called routines, the language mode is restored to the languagemode of the calling routine. However, at the conclusion of a routine loaded with ZLOADthe language mode is not restored to the previous language mode. For further details onchecking and setting language modes, refer to the $ZUTIL(55) function.See Also• OPEN command• USE command• XECUTE command• ZSAVE command396 <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!