Reply To: How do I create msgs end with n and nr?

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?

#57139
Jonathan Hamilton
Participant

    >>1. How do I create msgs end with n and msgs end with nr?

    set mh [msgcreate -recover “yada yada yada badan”]

    set mh [msgcreate -recover “${msgData}nr”]

    >>2. When I do a msgcreate, does the engine automatically puts an n at the end of it?

    The msgcreate command doesn’t add anything to the data string.  If you are using a file based protocol it’s possible the protocol is adding a newline to the end of your file though.

    If you want to see the carriage return or newline in your message use msgdump to view the message.  Instead of interpreting special characters message dump will display them in hex so you should see x0d for r and x0a for n.  Additionally, you can use hcihd to view a hex dump of a file to verify it after processing.