Hi,I have an agent in Lotus Script. This agent creates an email it will be sent to 2 diffents accounts:
docmail.SendTo = Split(doc.ResponsableA(0),doc.Responsable_1(0))
Whats the error?
Hi,I have an agent in Lotus Script. This agent creates an email it will be sent to 2 diffents accounts:
docmail.SendTo = Split(doc.ResponsableA(0),doc.Responsable_1(0))
Whats the error?
Subject: Split Funcion not working for 2 SendTo Emails
I guess you have misunderstood the idea of split.
Given a string as a first and a separator char as a second argument, split should search in the first string for any occurence of the separator string. It then should split the string into pieces and store them in an array, which it should use as a return value.
What exactly do you want to do with these 2 fields ResponsableA(0) and Responsable_1(0) ?
Subject: RE: Split Funcion not working for 2 SendTo Emails
Every field is an user. It supposed it will search inside a form and it will send the same email to both users in those fields
Subject: RE: Split Funcion not working for 2 SendTo Emails
This isn’t a place for Split, then, since you’re not trying to split up a string. You want something more like this:
Dim arr_to(1) as String
arr_to(0) = doc.ResponsableA(0)
arr_to(0) = doc.Responsable_1(0)
docmail.SendTo = arr_to