IF This.parent.aAttachList[1] = "C" FOR ix = 1 to alen(This.parent.aAttachList,1) IF file(This.parent.aAttachList[ix]) IF .AttachmentCount > 0 .AttachmentIndex = .AttachmentIndex + 1 ENDIF .AttachmentPathName = This.parent.aAttachList[ix] ENDIF ENDFOR ENDIFYou need to adjust attachmentindex and pathname per attachment file.