If I have Visual FoxPro code like:
DIMENSION aRecipients(2, 1)
aRecipients(1, 1) = “Somebody@somewhere.com”
aRecipients(2, 1) = “Somebodyelse@somewhere.com”
I can use an array for the recipients:
loNotesDocument.ReplaceItemValue(“SendTo”, @aRecipients)
Can I similarly use arrays for attachments like the following? Anything special for names with spaces? I know I can embed the objects one by one by cycling through the array.
DIMENSION aAttachments(2, 1)
aAttachments(1, 1) = “C:\Test1.txt”
aAttachments(2, 1) = “C:\My Documents\Test2.txt”
loRichTextItem = loNotesDocument.CreateRichTextItem(“Attachment”)
loRichTextItem.EmbedObject(1454, “”, @aAttachments)