Hi All,
I am attempting to create readers/authors fields on a backend document using lotusscript.
I have managed to create the field using the following…
Dim newr1 As New NotesItem(curdoc, “Readers”, ReaderList, READERS)
This codes runs from within a sub held in Script Library. The sub receives two parameters
-
The list of names for values of the Readers/Author field
-
A Value of “authors” or “readers” to determine the type of field to create.
I need for the code above to receive use the second parameter to determine the type of field to create.
My attempt of this was as follows
Dim newr1 As New NotesItem(curdoc, ReaderOrAuthor, ListOfNames, ReaderOrAuthor)
It seems I can use the Parameter of the sub for the 2nd parameter of of the new noteitem, however I am unable to use it for the last parameter of the declaration as it is a Constant and I am using a string.
Is there a way to use the String Parameter (ReaderOrAuthor) that passed to the Sub as the Constant Parameter of New notesItem??
I am hoping that this makes sense and that somebody is able to help me resolve this issue.
Regards,
Andrew