.
HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1
212-599-2048
Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development
Chat now
.
EN - English
CN - 中文
JP - 日本語
DE - Deutsch
FR - Français
BR - Português
RU - Pу́сский
IT - Italiano
IN - हिन्दी
ES - Español
KR - 한국어
ID - Indonesia
NL - Dutch
TR - Türkçe
SA - العربية
SE - Svenska
NO - Norsk
PL - Polski
TH - ไทย
DK - Dansk
MY - Malay
PH - Filipino
GR - Ελληνικά
FI - Suomi
IL - עברית
IE - Gaeilge
CZ - Čeština
UA - Українська
RO - Română
VN - Tiếng Việt
BD - বাংলা
HU - Magyar
Need a Domino Consultant? Call NotesMail +1 212-599-2048
-
HCLSoftware Business Partner
LOTUSSCRIPT/COM/OLE CLASSES
Examples: GetPrevSibling method
This script finds the second-to-last main document in the Main View of a database.
If the Main View is categorized and lastMain is the only main document in its category, GetPrevSibling returns Nothing, even if there are more main documents in other categories in the view.
If the Main View is categorized and lastMain is not the only main document in its category, GetPrevSibling returns the previous main document in the same category as lastMain.
If the Main View is not categorized, GetPrevSibling returns the previous main document.
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
GetPrevSibling method
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Feedback on
Help
or
Usability
?
Help on Help
All Help Contents