Contains (NotesItem - LotusScript®)

Given a value, checks if the value matches at least one of the item's values exactly.

Defined in

NotesItem

Syntax

flag = notesItem .Contains( value )

Parameters

value

String, number, or variant of type DATE.

Return values

  • True indicates that the value matches one of the values in the item.
  • False indicates that the value does not match any of the values in the item.

Usage

This method cannot search a text item to see if it contains a specific word -- rather, it's intended to check a text list, number list, or date-time range to see if one of the values in the list or range matches value.

If value is a distinguished name and if the item contains Notes® user names, the distinguished name matches the common version of the hierarchical name.

Example