I am encountering an issue (expected End) with our new script. This script was designed to access a DB2 table and(email address column) to fetch email addresses then send. I am encountering a script error at the Call docMemo… and Next lines. Is that Call docMemo… correct? Thanks team…
Dim lccon As New LCConnection(“CUSDB2”)
Dim flCustomer As New LCFieldlist(100)
Dim fldEmail As LCField
Dim lngCount As Long
Dim lngInd As Long
dim session as notesSession
dim dB as notesDataBase
dim docMemo as notesDocument
set session = new notesSession
set dB = session.currentDataBase
lccon.Metadata = “SAMPLE.EMAILS”
lccon.Fieldnames = “CEMAIL”
lccon.Connect
Call lccon.Select(Nothing, 1, flCustomer)
Set fldEmail = flCustomer.Lookup(“CEMAIL”)
lngCount = lccon.Fetch(flCustomer, 1, 100)
For lngInd = 1 to lngCount
Do Until lngCount = 0
recipients = ArraySlice(fldEmail.Value, 0, lngCount - 1)
Call docMemo.ReplaceItemValue(“BlindCopyTo”, recipients)
Call docMemo.Send False
Next
lngCount = lccon.Fetch(flCustomer, 1, 100)
Loop