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$STACKReturns information about active contexts saved on the process call stack.$STACK(context_level,code_string)$ST(context_level,code_string)Parameterscontext_levelcode_stringThe zero-based context level number that specifies the contextfor which information is requested.Optional — An ASCII character string that specifies the kind ofcontext information that is requested.DescriptionEach time a routine invokes a DO command, an XECUTE command, or a user-definedfunction (but not a GOTO command), the context of the currently executing routine is savedon the call stack and execution starts in the newly created context of the called routine. Thecalled routine, in turn, can call another routine, and so on, causing more saved contexts to beplaced on the call stack.The $STACK function returns information about these active contexts saved on your processcall stack. $STACK also can return information about the currently executing context.However, during error processing, $STACK returns a snapshot of all the context informationthat is available when an error occurs in your application.See Error Handling in Using <strong>Caché</strong> <strong>ObjectScript</strong> for more detailed information about errorprocessing and your error process stack.The One-Argument Form of $STACK$STACK(context_level) returns a string that indicates how the specified context level wasestablished. The following table describes the string values that can be returned:300 <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!