Identify a text or text list is empty or not

We can use getitemvalue and checking the 0 index value like var(0). Another way we can do is like using a method available for notesitem class. it is notesitem.text. Read the usage in help file carefully. For multiple values in a list are separated by semicolons in the returned string. If an item’s value is large, the returned string may be truncated. For rich text items, this property skips non-text data such as bitmaps and file attachments. For HTML items, this property returns Null.

Dim nitem As NotesItem
Set nitem = doc.GetFirstItem("t1")
Msgbox nitem.Text ,,"nitem.Text "
Msgbox nitem.Type
If nitem.Text = "" Then
Msgbox "empty"
End If

Leave a Reply

Your email address will not be published. Required fields are marked *