gettclvar

Imports the Tcl variable value to the OML variable.

Syntax

[omlvariablename,status,errormessage] = gettclvar (tclvariablename)

Inputs

tclvariablename
Any valid Tcl variable name as a string.
Type: string

Outputs

omlvariablename
Any valid OML variable name.
Type:
Tcl Variable Type OML Variable Type Limitations
Bool Logical
Int Number
Double Number
String String
status
Status of importing the Tcl variable value to the OML variable.
1 = success
0 = failure
Type: number
errormessage
Error message indicating the failure.
Type: string

Example

[status,errormessage]=evaltclscript('set x 9');
[omlvariablename,status,errormessage]=gettclvar ('x')
omlvariablename=9
status = 1
errormessage =