Re: split

#56155
Terry Kellum
Participant

Try something like this:  

(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….

        Forum Statistics

        Registered Users
        5,115
        Forums
        28
        Topics
        9,291
        Replies
        34,426
        Topic Tags
        286
        Empty Topic Tags
        10