exportlisttooml

Exports the Tcl list to the OML variable.

Syntax

set status [exportlisttooml tclvariablename omlvariablename index]

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
List Cell (1,n) n:number of elements in list. Supports only if the list contains the following Tcl data types: Bool, Int, Double, String. Other data types are exported as strings.
index (optional)
Index of the element in the list. Exports entire list if index is not provided.
Type: integer

Outputs

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

Example

set lis [list true 2 3.3 "4"]
set status [exportlisttooml lis omllist]
1

Comments

Any error reported by OML is returned as a string. Returns 1 on success.