LOTUSSCRIPT /COM/OLE のクラス


例:GetPrev メソッド
次のスクリプトは、ビューナビゲータ内の 1 つ前のエントリの note ID を表示します。

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim entryA As NotesViewEntry
Dim entryB As NotesViewEntry
Dim nav As NotesViewNavigator
Set db = session.CurrentDatabase
Set view = db.GetView("By Category")
view.AutoUpdate = False
Set entryA = nav.GetLastDocument
Set entryB = nav.GetPrev(entryA)
Messagebox entryB.NoteID

関連項目