Sub Initialize Dim session As New NotesSession Dim db As NotesDatabase Dim view As NotesView Dim doc As NotesDocument Dim entry As NotesViewEntry Set db = session.CurrentDatabase Dim Vec As notesViewEntryCollection j=1 Set view = db.GetView( "ALL$" ) Set vec = view.AllEntries Set entry = vec.GetNthEntry( j ) Set doc = entry.Document While Not (doc Is Nothing) If entry.isconflict = True Then Call doc.remove(True) End If j=j+1 Set entry = vec.GetNthEntry( j ) If entry Is Nothing Then Exit Sub End If Set doc = entry.Document Wend Msgbox db.Title & "delete conflict docs finished!" End Sub
版权声明:本文为myanm原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。