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.
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.
See Also