remove newline in message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf remove newline in message

  • Creator
    Topic
  • #50103
    John Paddock
    Participant

      I’m stringing a message together via msgappend. It appears that this command inserts a hex(0A) at the end of each msgappend. How do I get rid of the hex(0A)? The receiving system does not want this at the end of file.

    Viewing 1 reply thread
    • Author
      Replies
      • #64916

        John Paddock wrote:

        I’m stringing a message together via msgappend. It appears that this command inserts a hex(0A) at the end of each msgappend. How do I get rid of the hex(0A)? The receiving system does not want this at the end of file.

        Can you paste your code here?

        -- Max Drown (Infor)

      • #64917
        Robert Milfajt
        Participant

          Assuming the variable mh has your message handle, you could run this command after all of your msgappends are done.

          Code:

          msgset $mh [regsub -all — n [msgget $mh] “”]

          However, I would be concerned that msgappend adding and extra character is not the proper behavior of that command.

          Hope this helps,

          Robert Milfajt
          Northwestern Medicine
          Chicago, IL

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