General information
Category:
COM/DCOM and OLE Automation
I am generating an e-mail through Lotus Notes. The following code
works fine in VFP 6.0(5) and VFP 7.0(1), but fails in VFP 8.0:
lcRecipient="Recipient 1;Recipient 2;Recipient 3"
* create ARRAY of recipients
=ALINES(acRecipients,CHRTRAN(lcRecipient,";",CHR(13)))
loNotes=CREATEOBJECT("Lotus.Notessession")
loNotes.Initialize("NotesPassword")
lcNotesDatabase="c:\notes\data\names.nsf"
loDB=loNotes.GetDatabase("",lcNotesDatabase)
lnNumRows=ALEN(acRecipients,1)
loDoc=lodb.createdocument
loDoc.Replaceitemvalue("Subject","Automation Test- Run #10 - Release 8.0")
****** FAILS HERE ******
loDoc.ReplaceItemValue("SendTo", @acRecipients)
****** END FAILS HERE ******
*loDoc.ReplaceItemValue("CopyTo",lcSender)
loRichTextItem = loDoc.CreateRichTextItem("Body")
loRichTextItem.AppendText("Client LLC")
loRichTextItem.AppendText ....
loDoc.Send(.F.)
RELEASE ALL LIKE lo*
VFP 8.0 gives an error:
"The class file () associated with this field cannot be found - class
association cleared".
This is running directly from a PRG.
Has anyone seen this? Am I looking at a bug or
was there an intentional change in VFP 8.0 which will require me to
take a different approach??
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only