developerWorks  >  Lotus  >  Forums & community  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)



Feedback Type
Subject Empty??
Product Area
Technical Area
Platform
Release
So, I did as suggested and the messagebox is displaying the message that corresponds to the Else statement, but there's no text in the messagebox. WHAT? The field I'm after is the ShortName field in the person doc of the NAB, which I have confirmed is a text list containing multiple entries.)

The relevant segment of my code reads:

Dim doc As NotesDocument
Dim item As NotesItem
Set item = doc.GetFirstItem( "ShortName" )
If ( item Is Nothing ) Then
Messagebox( "There is no short name item on the document." )
Else
Messagebox( _
"The short name item on the document has the value: " _
+ item.Text )
End If
If item.Values(0)<>"" Then
....and it continues from there ...

The prompt reads, "The short name item on the document has the value:" with nothing else. Then it throws an 'Object variable not set' error at the line that reads, If item.Values(0)<>"" Then

I've also tried swapping the ShortName for the InternetAddress field, which is a text string (not list) with the same results. It's so weird. Anyone have any ideas?

Feedback number WEBBAU8KWT created by on 01/16/2018

Go back