Information générale
Catégorie:
COM/DCOM et 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??
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement