Originally posted by Tim Pashon
# assign all the incoming values to a variable;# here only one variable is assigned: 'field'lassign $xlateInVals field# truncate 'field' to first 10 charactersset field [string range $field 0 9]# set the outgoing values; make sure it's a list of values# even if there's only one value!set xlateOutvals [list $field]
set xlateOutVals [list [string range [lindex $xlateInVals 0] 0 9]]
Originally posted by Robert Denny
Originally posted by bill bearden
Originally posted by Chris Williams
given the list tclList "{color red} {color green} {color blue}"[lindex $tclList 0] --> color red[lindex $tclList 1] --> color green[lindex $tclList 2] --> color blue