Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: COM: How to use GetNextDocument(doc) when doc is deleted?
Feedback Type: Problem
Product Area: Domino Server
Technical Area: Application Development
Platform: ALL
Release: 8.5.2
Reproducible: Always

Hello,

I'm trying to cycle through a notesDocumentCollection using the following:

l_oDoc = l_oDocCol.GetFirstDocument()
DO WHILE !ISNULL(l_oDoc)
l_oNextDoc = l_oDocCol.GetNextDocument(l_oDoc)
IF !l_oDoc.IsDeleted()
l_oDoc.removePermanently(.T.)
ENDIF
l_oDoc = l_oNextDoc
ENDDO

But, if l_oDoc is deleted, I get an error on this line:

l_oDocCol.GetNextDocument(l_oDoc)

Here's the error message:

OLE IDispatch exception code 0 from NotesDocumentCollection: Argument has been deleted..

How can I get the next document when the current one is deleted?

Thanks.


Feedback number BFIS8JVTCA created by ~Miriam Pregerochekjip on 07/18/2011

Status: Open
Comments:

COM: How to use GetNextDocument(doc... (~Naomi Brekrosk... 18.Jul.11)
. . Get an earlier reference (~Dana Kiachekle... 19.Jul.11)
. . . . But doc is deleted... (~Naomi Brekrosk... 19.Jul.11)
. . . . . . ... (~Dana Kiachekle... 19.Jul.11)
. . . . . . Unless you find a way to keep delet... (~Fred Asatumibu... 19.Jul.11)
. . . . How to Delete Docs in a Collection ... (~Ethan Prejipyl... 20.Aug.14)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS