#mailtool_setMsgPtr

      *//////////////////////////////////////////////////////////////*
      * #mailtool_setMsgPtr - Set Value of Message with Pointer      *
      *                                                              *
      * Input:                                                       *
      *   in_msg@ - The pointer to the message data.                 *
      *   in_msg@Size - The size of the message data.                *
      *                                                              *
      * Output:                                                      *
      *   out_errMsg - The error message (if error exists).          *
      *                                                              *
      * Returns:                                                     *
      *   -1 for error, size of message if no error.                 *
      *                                                              *
      *//////////////////////////////////////////////////////////////*
     D #mailtool_setMsgPtr...
     D                 PR            10i 0
     D  in_msg@                        *   Value
     D  in_msg@Size                  10i 0 Value
     D  out_errMsg                  256    Options(*NOPASS)



This function is used to set the value of a message using a pointer and the size of the message.

When using this function if a value has already been set for the message using #mailtool_setValue() that value will be cleared and the contents of this new pointer will be used.

Any required line breaks should be embedded in the string using hex '0D25' which is an EBCDIC CRLF.


See http://www.fieldexit.com/forum/display?threadid=173 for an example.
Comments