Hi I have a code snippet posted below that gives the reviewers list as an array called TempArray. I need to remove the first value from it for example TempArray could contain values like
John, Joe, Mark, John
I just need to remove first John from it so the new list should contain Joe, Mark, John.
I have tried Split, Mid, Replace, RemoveNthEntries but all of these functions give me a type mismatch error.
GetReviewers = Doc.GetItemValue(“Reviewers”)
i = Ubound(GetReviewers)
If i <> 0 Then
i = Ubound(GetReviewers)-1
Else
i = Ubound(GetReviewers)
End If
Redim Preserve TempArray(0 To i)
Forall X In GetReviewers
If X <> "" Then
TempArray(j) = X
j = j + 1
End If
End Forall
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim a() As Variant
Set uidoc=ws.CurrentDocument
Set doc=uidoc.Document
Redim a(Ubound(doc.tesr)) As Variant
Msgbox(Ubound(doc.tesr))
For i=0 To Ubound(doc.tesr)-1
a(i)=doc.tesr(i+1)