Re: Re: tcl command

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf tcl command Re: Re: tcl command

#59524
Robert Kersemakers
Participant

    Thomas G Rioux wrote:

    set var $xlateInvals

    set xlateOutVals “[string range $var 0 2] [string range $var 3 end]”

    You’re playing with fire here; xlateOutVals should always be a list!

    So use this instead:

    Code:

    set var $xlateInvals
    set xlateOutVals [list [string range $var 0 2] [string range $var 3 end]]


    Can’t argue with the rest though…

    Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands