LOTUSSCRIPT/COM/OLE CLASSES


Examples: GetPrevSibling method
This script finds the second-to-last main document in the Main View of a database.
Dim db As New NotesDatabase( "Addis-Ababa", "discuss.nsf" )
Dim view As NotesView
Dim lastMain As NotesDocument
Dim secondToLastMain As NotesDocument
Set view = db.GetView( "Main View" )
Set lastMain = view.GetLastDocument
' Find the last main document in the view
While lastMain.IsResponse
 Set lastMain = view.GetParentDocument( lastMain )
Wend
' Now find the second-to-last main document in the view
Set secondToLastMain = view.GetPrevSibling( lastMain )

See Also