Copy new messge over old

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Copy new messge over old

  • Creator
    Topic
  • #50457
    Rick Pritchett
    Participant

      I am trying to copy a new message i created over the original message and return the new message to the engine.  Here is my code any thoughts?

      set newMh [msgcopy $mh]

      msgset $newMh $new_ORM_Msg

      echo $new_ORM_Msg

      set dispList

        and of course at the end of the proc.

        return $dispList

    Viewing 1 reply thread
    • Author
      Replies
      • #66156
        Rob Abbott
        Keymaster

          A couple thoughts:

          1. just use the existing message object to hold your new content

          Code:

          msgset $mh $new_ORM_Msg
          echo $new_ORM_Msg
          lappend dispList “CONTINUE $mh”

          2. create a new message object, return that, and kill the old:

          Code:

          set newMh [msgcopy $mh]
          msgset $newMh $new_ORM_Msg
          echo $new_ORM_Msg
          lappend dispList “CONTINUE $newMh”
          lappend dispList “KILL $mh”

          #1 is probably faster.

          Rob Abbott
          Cloverleaf Emeritus

        • #66157
          Rick Pritchett
          Participant

            thanks a bunch

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