>ADDPROPERTY( oParameter, "attachment", tcAttachment ) >>Above code adds a variable tcAttachment to the object oParameter
>lSuccess = EmailProc( oParameter ) >>
>cAttachDoc = oParameter.attachment >>
>ADDPROPERTY( oParameter, "attachment", taAttachment ) >>In the above line the parameter taAttachment is now Array instead of the character. Will it work?
>ADDPROPERTY( oParameter, "attachment(2)", "DOC1.PDF" ) >oParameter.attachment(2) = "DOC2.PDF" >>
>cValue1 = oParameter.attachment[1] >cValue2 = oParameter.attachment[2] >>
* using nfTools: oParameter = e('attachment(2)',m.doc1,m.doc2,'count',2) * instead of : oParameter = create('empty') addProperty(oParameter,'attachment(2)') oParameter.attachment(1) = m.doc1 oParameter.attachment(2) = m.doc2 addProperty(oParameter,'count',2)Check nfTools e() full syntax & capabilities at: https://www.github.com/nftools/e