"" value of a rich text field

This is probably a stupid question, but I cannot figure out how to test the value of a rich text field for “”. It is not Nothing, it is not Null, it is “” but I get a type mismatch when I try to test it for “”. Thanks in advance

Janice

Subject: “” value of a rich text field

There are two ways I’ve done it. The first is to use GetUnformattedText method of NotesRichTextItem. However, if your rich text field only has an image or attachment, you won’t get anything back. So I now use the ValueLength property to see if the field is empty. Since this value contains overhead, a value of 104 is empty if the rich text field was edited in Notes, and 88 if the rich text field being tested is edited on the web. So I have code such as this…

If ThisDocRTItem.ValueLength = 104 Or ThisDocRTItem.ValueLength = 88 Then

ThisDoc.errormessage = “Message missing. Enter a Message.”

End If

Subject: RE: “” value of a rich text field

Awesome. Thanks so much.

Subject: RE: “” value of a rich text field

This is a real issue with RTF’s as they hold information that may not have any visual indication.

For example, if I just changed the colur of the text, but did not enter any characters, the length of the RTF would increase (as it needs to contain that change) but we would still consider the field to be empty.