Hallo,
eine Frage:
Wenn ich alle Dokumente zB in einer Ansicht abarbeiten will, mache ich das so:
| set doc = view.getfirstDocument |
| while not doc is nothing |
| . |
| . |
| . |
| set doc = view.getnextdocument(doc) |
| wend |
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?
| set doc = view.getfirstDocument |
| while not doc is nothing |
| set nextdoc = view.getnextdocument(doc) |
| . |
| . |
| call doc.remove |
| set doc = nextdoc |
| wend |