< Back

Document Subject: IsDeleted does not work
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#IsDeleted or http://A555F9/nn.nsf/ByAlias/IsDeleted

NotesDocument property IsDeleted does not work in some Notes 5 and some Notes 6 versions.




The best alternative is to check the size property. If the size is 0 then the document is a delete stub.

Another way to check is the universalid property. This is empty if the document is a delete stub.

 

How do you code it well you could do:

 

if doc.isdeleted or doc.size=0 then

    'probably deleted

else

    'doc is not deleted

end if

 

Update 13 December 2007

You can use  lotusscript isvalid for NotesViewEntry to see if it is deleted or not.