>UPDATE. I found that I add the array to the oParameter as follows:
>
>ADDPROPERTY( oParameter, "attachment(2)", "DOC1.PDF" )
>oParameter.attachment(2) = "DOC2.PDF"
>
>
>Then to get the value from the oParameter, I would have to use:
>
>cValue1 = oParameter.attachment[1]
>cValue2 = oParameter.attachment[2]
>
>
>But I would need to know the number of elements in the array. Is passing the number of elements as another parameter the only way?
You can still use ALEN() function or create a property on oParameter (Count);
?ALEN(oParameter.attachment, 1)
ADDPROPERTY( oParameter, "Count", 2)