exportdicttoomlmatrix
Exports the Tcl dictionary values to the OML variable.
Syntax
set status [exportdicttoomlmatrix tclvariablename omlvariablename]
Inputs
- tclvariablename
- Any valid Tcl variable name as a string.
- omlvariablename
- Any valid OML variable name as a string.
Outputs
- status
- Status of exporting the Tcl dictionary values to the OML variable.
Example
set intDict [dict create 1,1 1 1,2 2 1,3 3 2,1 4 2,2 5 2,3 6]
set status [exportdicttoomlmatrix intDict omlmatrix]
1
Comments
Any error reported by OML is returned as a string. Returns 1 on success.
Keys in dictionary are treated as matrix indexes. Indexes should be comma (",") separated.