Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

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)

Previous Next


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." )
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 response number WEBBAU8KWT created by Stacy Elmwood on 12/20/2017

Persnickety LotusScript Error (Stacy Elmwood 18.Dec.17)
. . no problem. (Mike Woolsey 18.Dec.17)
. . You want to test if item is empty (Carl Tyler 18.Dec.17)
. . . . Error trap (Barry Shapiro 18.Dec.17)
. . . . Empty?? (Stacy Elmwood 20.Dec.17)
. . . . . . Inspect using debugger (Martha Geppert 20.Dec.17)
. . . . . . . . It's there alright, but not seen? (Stacy Elmwood 21.Dec.17)
. . . . . . . . . . I wonder if it being summary protec... (Carl Tyler 21.Dec.17)
. . . . . . . . . . . . Access Level = Manager (Stacy Elmwood 21.Dec.17)
. . . . . . . . . . Look further at the field / item (Martha Geppert 22.Dec.17)
. . . . . . . . . . . . Check all documents (Alex Elliott 1.Feb.18)


Search this forum

Member Tools

RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite