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