Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › How do I create msgs end with n and nr? › Reply To: How do I create msgs end with n and nr?
The problem is you have no metadata. You will invariably crash the engine even if you try to build your own.
Use msgcopy instead. For example
set nmh [msgcopy $mh]
msgset $nmh $newmsg
A good tip:
If the IB message is large, first get a copy of the IB msg then clear the message handle so that with each msgcopy you are not copying a large message that will subsequently get over-written. For example
set msg [msgget $mh]
msgset $mh “”
Then do the msgcopy commands