exportarraytooml
Exports the Tcl array to the OML variable.
Syntax
set status [exportarraytooml 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 array. Export entire array if key is not provided.
Outputs
- status
- Status of exporting the Tcl array to the OML variable.
Example
array set myArray {k true key2 1 key3 2.2 key4 "4"}
set status [exportarraytooml myArray omlmyArray]
1
Comments
Any error reported by OML is returned as a string. Returns 1 on success.