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.
Type: string
omlvariablename
Any valid OML variable name as a string.
Type: string
Tcl Variable Type OML Variable Type Limitations
Dictionary ND Matrix Values in the dictionary should be one of the following data types (not in combination): Bool, Int, Double.

Keys in the dictionary are treated as matrix indexes. Indexes should be comma (",") separated.

Outputs

status
Status of exporting the Tcl dictionary values to the OML variable.
1 = success
"error message" - failure
Type: int | string

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.