So zum Beispiel:
Set view = db.GetView("meineView")
Set doc = view.GetFirstDocument
While Not (doc Is Nothing)
If doc.Hasitem("MarkedToBeDeleted") Then
Set docToDelete = doc
End If
Set doc = view.GetNextDocument(doc)
If Not docToDelete Is Nothing Then
Call docToDelete.RemovePermanently(True)
End If
Wend
Gruß,
Mitch
oder "andersrum":
Set doc = view.GetFirstDocument
While Not (doc Is Nothing)
Set docNext = view.GetNextDocument(doc)
If doc.Hasitem("MarkedToBeDeleted") Then
Call doc.RemovePermanently(True)
End If
Set doc = docNext
Wend