evaltclscript

Evaluates a Tcl script.

Syntax

[status,errormessage] = evaltclscript (tclscript)

Inputs

tclscript
Any valid Tcl command as a string.
Type: string

Outputs

status
Status of the script execution.
1 = success
0 = failure
Type: number
errormessage
Error message indicating the failure.
Type: string

Example

[status,errormessage]=evaltclscript('set x 9')

status = 1
errormessage =