*BeginInterpreter()
Indicates the beginning of an interpreter block.
Syntax
*BeginInterpreter (interpreter)
Application
Independent of clients.
Valid in session files, report templates, and preference files.
Inputs
- interpreter
- The interpreter to use to execute this block. Currently only Tcl is supported.
Example
*BeginInterpreter("tcl")
hwi OpenStack
hwi GetSessionHandle sess
sess GetProjectHandle proj
set npg [proj GetNumberOfPages]
sess PostMessageToLog "File has $npg pages"
hwi CloseStack
*EndInterpreter()
Comments
All text in the *BeginInterpreter() block is executed using the specified interpreter. Interpreter blocks are executed immediately when loading a session file. Interpreter blocks are executed immediately after instantiating a report template.