Scripts.exec

Function/Meaning
Script execution
Type
Method of the Scripts class
Syntax
exec(script, name='', linesof=0, context=global)
Arguments
script Specifies the script to execute as a string.
name Specifies the filename for error messages.
linesof Specifies the starting line number for error messages.
context Specifies the execution context.
Return Value
Returns the result of the script execution.
Description
Executes the string specified by script as a TJS2 script.
Exceptions occurring during script execution are not caught within this method, so they can be caught by the caller of this method.
Reference
Scripts.execStorage
Scripts.eval