tcl Kill – multiple options?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf tcl Kill – multiple options?

  • Creator
    Topic
  • #54246
    Neema Kapadia
    Participant

      I am trying to figure out the exact difference between the following two tcl commands.  Both of them seem to delete the intended message but not for all scenarios.  

      At times the lappend command leaves the message in the Recovery database (in #10 status) and I am not sure why?

      1) return “{KILL $mh}”

      2) lappend dispList “KILL $mh”

      Thank you.

    Viewing 2 reply threads
    • Author
      Replies
      • #80712
        Jim Kosloskey
        Participant

          With the lappend are you returning the dispList to the engine?

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #80713
          Neema Kapadia
          Participant

            I am creating a new mh ($newmh) which I am returning to the engine while the original $mh needs to be killed and that is what the lappend does for me but only in certain circumstances.  For other scenarios I had to use the return to kill the $mh because lappend was not working for me.  ðŸ˜•

          • #80714
            Charlie Bursell
            Participant

              The two are the same assuming the variable dispList is empty at the time or does not exist

              If having problems echo out the contents of dispList just before you return.  See what you are actually returning

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