Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iterating thru an item in all documents

Status
Not open for further replies.

rturnbul

Technical User
Feb 6, 2005
6
US
Hi,

I am trying to iterate thru all documents of a database(mydb.nsf)
I want to gather all of the values of an item (LastName)
Question: How do I build an (array of strings, I think). This will become the input for a prompt so a user can choose something.

Part of my code listing shown below ...


code to setup environment ....

Dim db As NotesDatabase
Set db =s.GetDatabase("NotesServer","mydb.nsf",False)
Set collection = db.AllDocuments

Set doc = collection.GetFirstDocument()

While Not doc Is Nothing
mylist = doc.GetItemValue("LastName")

Forall x In mylist
Messagebox x
_________________________________________________________
** need to insert missing code here to build array
_________________________________________________________

End Forall

Set doc = collection.GetNextDocument(doc)
Wend

askme = ws.Prompt(PROMPT_OKCANCELLISTMULT, "Select a Name", "Select one or more names as recipients for this request.",input(1) , input)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top