SET may only be used on class instance assignments

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

???

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)

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

Subject: SET may only be used on class instance assignments

Set user = session.CreateName(session.UserName)