GetNthDocument (NotesDocumentCollection - LotusScript®)

コレクション内の指定された位置番号の文書を返します。

定義位置

NotesDocumentCollection

構文

Set notesDocument = notesDocumentCollection .GetNthDocument( n& )

パラメータ

n&

Long。返される文書の位置を示す番号。 1 はコレクションの最初の文書、2 は 2 番目の文書というように文書を示します。

戻り値

notesDocument

NotesDocument. コレクションの指定された位置にある文書を返します。指定された位置に文書がないとき、Nothing を返します。

使用法

パフォーマンス上の理由により、GetNthDocument を使用してループを繰り返すことは避けてください。推奨されるループ構造については、GetDocumentGetFirstDocumentGetLastDocumentGetNextDocumentGetPrevDocument を参照してください。

クロスリファレンス

Java DocumentCollection クラスの getNthDocument メソッド