exportdicttooml
Exports the Tcl dictionary to the OML variable.
Syntax
set status [exportdicttooml tclvariablename omlvariablename key]
Inputs
- tclvariablename
 - Any valid Tcl variable name as a string.
 - omlvariablename
 - Any valid OML variable name as a string.
 - key (optional)
 - Key of the element in the dictionary. Exports entire dictionary if key is not provided.
 
Outputs
- status
 - Status of exporting the Tcl dictionary to the OML variable.
 
Example
set mydictionary [dict create k true key2 1 key3 2.2 key4 "4"]
set status [exportdicttooml mydictionary omldictionary]
      1
    Comments
Any error reported by OML is returned as a string. Returns 1 on success.