Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Parsing through variable length element › Re: split
March 23, 2005 at 10:07 pm
#56155
Terry Kellum
Participant
(split is a wonderful command. It will split {CFC 999999 9999} into
{CFC} {999999} {9999} based on the space char.)
set xlateOutVals
{ }] 0]]
or
set xlateOutVals
{ }] 1]]
or
set xlateOutVals
{ }] 2]]
for each piece…
Assuming that you only have one item on the “input” side of your copy.
You can test that this is one item by having
set myitem [lindex $xlateInVals 0]
echo $myitem
if you get out CFC 999999 9999 then you know that this is a single item in the list.
Lists of lists of lists. Keep it all square and it’s the best thing since sliced bread. It WILL make your head hurt sometimes tho….