Lotus scripting is getting over my head.
I have an issue I'm working on within an agent. I have an autogenerated email that builds the body of the email and then sends it. within the message I want to send a value from the form that is getting selected for the email. I have this AppendText :
Call rtitem.AppendText( "Incident Source: " + src + Chr(13) + Chr(13) + "This is a Daily Notification Process indicating you have an open IR older than 5 days that Requires your attention. " + Chr(13) + "Please Open, Review and Update the IR." + Chr(13) + Chr(13) + "A Final Root Cause and Resolution are Required. " + Chr(13) + Chr(13) + "Thank You !" + Chr(13) + Chr(13) + "Open IR Document Link -> " )
Call rtitem.AppendDocLink( curdoc, doc.Subject( 0 ) )
this is just a message body of the email. I'm trying to add the first part, "Incident Source: " + src + Chr(13) + Chr(13) +
the 2 chr gives me 2 line feeds. The problem is when trying to add field value src I get the mismatch
I have it defined above as Dim src As NotesItem and then Set src = curdoc.GetFirstItem( "Incident" )
plus I'm trying to add the src value to the error at the end if there is one in this.
MsgBox "Error in Send: " + src & Error$