On the currentDoc, the DueDate item contains 10/16/95 and the Description item contains "Ad Campaign for Acme." Therefore,
currentDoc.ColumnValues(0) equals 10/16/95
currentDoc.ColumnValues(1) equals _
"New Project: Ad Campaign for Acme"
server$ = "Tilburg"
dbfile$ = "inventor.nsf"
counter% = 1
Dim db As New NotesDatabase( server$, dbfile$ )
Dim view As NotesView
Dim doc As NotesDocument
Dim productList( 1 To 100 ) As Variant
Dim currentProduct As Variant
Set view = db.GetView( "Products" )
Set doc = view.GetFirstDocument
While Not ( doc Is Nothing )
' Get the value on the current document that shows up in
' view's first column
' Append this value to our productList array
currentProduct = doc.ColumnValues( 0 )
productList( counter% ) = currentProduct
Set doc = view.GetNextDocument( doc )
counter% = counter% + 1
Wend
' There are now counter% - 1 items in the productList