Domino 9 und frühere Versionen > ND6: Entwicklung
Dokumente der Reihe nach abarbeiten - Verständnisfrage dazu
(1/1)
voodoo:
Hallo,
eine Frage:
Wenn ich alle Dokumente zB in einer Ansicht abarbeiten will, mache ich das so:
--- Code: ---set doc = view.getfirstDocument
while not doc is nothing
.
.
.
set doc = view.getnextdocument(doc)
wend
--- Ende Code ---
Jetzt ist es aber so, dass ich manchmal das document beim BEarbeiten Lösche. Dann kann ich natürlich auch nicht mehr mehr mit getnextdocument(doc) das nächste zuweisen.
Ginge es stattdessen so?
--- Code: ---set doc = view.getfirstDocument
while not doc is nothing
set nextdoc = view.getnextdocument(doc)
.
.
call doc.remove
set doc = nextdoc
wend
--- Ende Code ---
Driri:
Japp, so gehts.
macchina:
... oder mit einer NotesViewEntryCollection:
set vecoll = view.allentries
set entry = vecoll.getfirstEntry
while not entry is nothing
set doc = entry.Document
.
.
call doc.remove
set entry = coll.GetNextEntry(entry)
wend
Navigation
[0] Themen-Index
Zur normalen Ansicht wechseln