gettclarray
Imports the Tcl array to the OML variable.
Syntax
[omlvariablename,status,errormessage] = gettclarray (tclvariablename, key)
Inputs
- tclvariablename
- Any valid Tcl variable name as a string.
- key (optional)
- Key of the element in the array. If key is not provided, then entire array will be return as output.
Outputs
- omlvariablename
- Any valid OML variable name.
- status
- Status of importing the tcl array value to the OML variable.
- errormessage
- Error message indicating the failure.
Example
[status,errormessage]=evaltclscript('array set myArray {k true key2 1 key3 2.2 key4 "4"}');
[omlvariablename,status,errormessage]=gettclarray('myArray')
omlvariablename = struct [
k: 1
key2: 1
key3: 2.2
key4: 4
]
status = 1
errormessage =