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.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext


Don R Green 13.Oct.06 02:07 PM a Web browser
Notes Client 6.0.2 CF2 Windows 2000


This script should grab the first document of a collection and then look at each of the rest of the selected documents comparing them to the first doc.
Then when the last doc is compared to the first, move from the first doc to the second doc and do the comparing again.

The way the inner while loop in the script is now written, it always gets the same doc (the second doc) and stays in an endless loop.
I understand why it always and now need help with the best way to modify it to do what I previously explained.

Thanks in advance for the help.

Here's the script:


Sub Initialize

....

Set session = New NotesSession
Set db = session.CurrentDatabase
Set m_collectionInbox = db.UnprocessedDocuments

Set docMain = m_collectionInbox.GetFirstDocument 'get the example email
Set docConflict = m_collectionInbox.getnextDocument(docMain) 'get next email to compare

While Not docMain Is Nothing
Set itemMain = docMain.GetFirstItem("Body") 'get the Body (Rich text field) item of the main document

While Not docConflict Is Nothing
Call process_items
Set docConflict = m_collectionInbox.getnextDocument(docMain)
Wend

Set docMain = m_collectionInbox.getnextDocument(docMain) 'get next email to compare

Wend

End Sub




Sub process_items

Set itemConflict = docConflict.GetFirstItem("Body")

If Strcompare(outputMain, outputConflict) = 0 Then
FrmIsDifferent = False 'strings are the same
End If

.....other processing if strings are the same

End Sub






what is the best method to walk thr... (Don R Green 13.Oct.06)
. . Recursion! (Jeanne Simpson 13.Oct.06)
. . . . RE: Recursion! (Don R Green 13.Oct.06)
. . . . . . RE: Recursion! (Jeffrey Hanson 13.Oct.06)
. . . . . . . . RE: Recursion! (Charles E. Robi... 13.Oct.06)
. . . . . . . . RE: Recursion! (Don R Green 17.Oct.06)
. . . . . . . . . . RE: Recursion! (Jeffrey Hanson 24.Oct.06)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

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

Resources

 Resources
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

Wikis

 Wikis
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