Tcl scripts that identifies keys

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Tcl scripts that identifies keys

  • Creator
    Topic
  • #55604
    Carl Tosi
    Participant

      We at UIC were wondering if anyone had a tcl script that would spit out keyed list, the key and the value.

      TIA,

      Carl Tosi

    Viewing 1 reply thread
    • Author
      Replies
      • #85885
        Mark Thompson
        Participant

          Carl,

          If you have a keyed list myKL, are you looking for something like:

          Code:

          foreach key [keylkeys myKL] {echo $key=[keylget myKL $key]}

          - Mark Thompson
          HealthPartners

        • #85886
          David Barr
          Participant

            A keyed list is a list of two item lists, so this should work:

            Code:

            foreach v $myKL { echo [join $v =] }

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.