Problem:
Even though the document is instatiated inside the function it is not returned to the calling code.
Explanation:
You're probably declaring and setting the value of the NotesDocument's parent database inside the function, which is outside the scope of the calling function. As a result, although you return the right document, the containing database is no longer open.
You can either pass the database *and* the document and pass them both back, or you can declare the database globally .
You can either pass the database *and* the document and pass them both back, or you can declare the database globally .
From: Notes Forum
No comments:
Post a Comment