#g4ppinv_createAttachment

 *//////////////////////////////////////////////////////////////*
 * #g4ppinv_createAttachment - Create an Attachment Record      *
 *                                                              *
 * Output:                                                      *
 *   out_errMsg - The error message (if error exists).          *
 *                                                              *
 * Returns:                                                     *
 *   -1 for error, n for current Attachment Index.              *
 *                                                              *
 *//////////////////////////////////////////////////////////////*
D #g4ppinv_createAttachment...
D                 PR            10i 0
D  out_errMsg                  256    Options(*NOPASS)

#g4ppinv_createAttachment is used to create an attachment record for the invoice you are working with.  This must be called prior to adding a new attachment records and using the #g4ppinv_setAttachmentValue() function.

Returns: Current Attachment Index for success, -1 for error.

Optional Parameters:
  • Error Message (output) - Error message
Comments