JAVA/CORBA CLASSES


getNthDocument method
Example

Given a position number, returns the document at that position in a collection.

Defined in

DocumentCollection

Syntax

public Document getNthDocument(int n)
   throws NotesException

Parameters

int n


Return value

Document


Usage

Collections are renumbered when deletions occur so that the positions of documents after the deleted document change.

Using getNthDocument in conjunction with getCount to iterate through a loop is strongly discouraged for performance reasons. See getNextDocument and getPrevDocument for the preferred loop structures.

Language cross-reference

GetNthDocument method in LotusScript NotesDocumentCollection class

Example
See Also