chubobo
27-02-06, 03:37 PM
Dim groupview As NotesView
Dim groupdoc As NotesDocument
Dim item As NotesItem
Set groupview=db.GetView("GroupByName")
Set groupdoc=groupview.GetDocumentByKey(Trim(note.Department(0)),False)
If Not groupdoc Is Nothing Then
Set item=groupdoc.GetFirstItem("Members")
If Not item.Contains(note.ChineseName(0)) Then
Call item.AppendToTextList(note.ChineseName(0))
End If
Call groupdoc.Save(True,True)
End If
程序在红色处出现错误,提示 Object variable not set
Dim groupdoc As NotesDocument
Dim item As NotesItem
Set groupview=db.GetView("GroupByName")
Set groupdoc=groupview.GetDocumentByKey(Trim(note.Department(0)),False)
If Not groupdoc Is Nothing Then
Set item=groupdoc.GetFirstItem("Members")
If Not item.Contains(note.ChineseName(0)) Then
Call item.AppendToTextList(note.ChineseName(0))
End If
Call groupdoc.Save(True,True)
End If
程序在红色处出现错误,提示 Object variable not set