I do have the following Lotus Script:
Sub Initialize
' ... some other code
Dim adminp As NotesAdministrationProcess
Dim varNoteID as Variant
' read the noteID from notes document field
varNoteID = doc.GetItemValue( "notes_document_field_noteid" )(0)
' Approve the document in admin4.nsf (the following line is failing)
adminp.Approvereplicadeletion(varNoteID)
End Sub
The issue is at following line:
' Approve the document in admin4.nsf
adminp.Approvereplicadeletion(varNoteID)
Error message i receive is:
Object variable not set in line
What I tried, but always failed is:
adminp.Approvereplicadeletion(varNoteID)
adminp.Approvereplicadeletion(varNoteID(0))
adminp.Approvereplicadeletion(varNoteID.NoteID)
Question:
How can I overgive the NoteID, which is saved in a variant variable, into adminp.Approvereplicadeletion(HERE-NOTEID-IN-VARIANT)
?