hcl-bot
1
Why am I getting the above error message on line 3 of this?
Dim session As New NotesSession
Dim user As NotesName
set user = session.UserName
And, as per designer help, if I change to;
let user = session.UserName
I get - SET required on class instance assignment
???
hcl-bot
2
Subject: SET may only be used on class instance assignments
you set set when assigning to something as in new…
so you line should read as
set user = new NotesName( session.userName)
hcl-bot
3
Subject: SET may only be used on class instance assignments
Per NotesHelp, UserName returns a string. Here is the example provided.
Dim session As New NotesSession
Dim user As String
user = session.UserName
hcl-bot
4
Subject: SET may only be used on class instance assignments
Set user = session.CreateName(session.UserName)