I am testing a new mail template, and get this error message. I have no idea where to start looking - can anyone help?
I’ve tried stepping through the process with debug on, but it doesn’t stop at the error.
I am testing a new mail template, and get this error message. I have no idea where to start looking - can anyone help?
I’ve tried stepping through the process with debug on, but it doesn’t stop at the error.
Subject: Error message “Set required on class instance assignment”
When assigning a variable to another variable or a constant, the format is:x = y
or
x = 10
But when assigning to an instance of a class object, you must use Set, such as:
Set doc = view.GetFirstDocument
or
Set uidoc = workspace.CurrentDocument
If you omit the word Set in either of these examples, the error will occur. So I suggest you examine changes to your LotusScript code where you might have left out Set. I do not understand why the debugger didn’t find this - unless you are using the web.
Subject: RE: Error message “Set required on class instance assignment”
Thanks for the response.
I’m not working in web, so still can’t figure out why debug doesn’t catch it.
I have tried to put Set in the code, but it won’t compile - error now is “Set may only be used on class instance assignments” This is coming up in a piece of code standard in the R6 mail template, for a hotspot called RemoveRoomHotSpotNotes_1_2, which has the following offensive code
Case “Required”
Set v = Ubound(vRequiredRecipients)
Redim Preserve vRequiredRecipients( v + 1)
vRequiredRecipients(v +1) = thisinstance.Mailaddress
Your help is appreciated.
Subject: RE: Error message “Set required on class instance assignment”
you need to use Mailaddress(0). if it’s a multi-valued field you will have to get the array into a single value field seperated by “;” (if you are trying to generate mailing list) and assign to vRequiredRecipients(v+1).
-Shiva.
Subject: RE: Error message “Set required on class instance assignment”
Please describe where exactly in the mail template this code is, and where exactly the original error displays. Also, which version of Notes are ou using?