.
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: Contains method
1. Your project on exotic orchids takes top priority next week, so you want to place all orchid-related mail in the folder "Next week." This script checks a document to see if "Exotic Orchids" is one of its categories; if so, the document is placed in the folder. The document may contain several values in its Categories item; as long as one of the values matches "Exotic Orchids," the Contains method returns True.
Set category = memo.GetFirstItem( "Categories" )
If category.Contains( "Exotic Orchids" ) Then
Call memo.PutInFolder( "Next week" )
End If
2. This script shows an incorrect use of Contains. It categorizes a document based on the contents of its Subject. If the memo's Subject item is "Here's my status report," the Contains method returns False because the values "Here's my status report" and "status" do not match.
Dim doc As NotesDocument
Dim item As NotesItem
'...set value of doc...
Set item = doc.GetFirstItem( "Subject" )
If item.Contains( "status" ) Then
doc.Categories = "Status reports"
Call doc.Save( True, True )
End If
See Also
Contains method
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Feedback on
Help
or
Usability
?
Help on Help
All Help Contents