The help for NotesDatabase.GetDocumentByID is wrong (and has been for many years.) This function works like GetDocumentByUNID…if the document isn’t found then a LotusScript error is raised (in this case, error 4270 - lsERR_NOTES_BAD_NOTEID) The documentation says that nothing is returned if not found, but that’s not correct. If not found then the error handler is called.
Subject: You can request changes online.
If you go to the Infocenter there is a Submit Feedback on every help page. Here is the page you want.
Subject: I thought there was a button directly in help too? Maybe that was pre-8.0…
Subject: Yep there is!
and it is still in 8.5.1. Just used to using Infocenter more now.