dear friends,i’m new in lotus script
i have a view with 8 column named:vwA.
columnA : categorized : ascending
columnB : categorized : ascending
columnC : categorized : ascending
columnD : categorized : ascending
columnE
columnF
columnG
columnH
columnI
how can i count the number of documents in view :vwA using a lotus script?
thanx for answering my question
Subject: counting a document in view
hi cen,
you may use the NotesViewEntryCollection - All Entries.
here is a sample code:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim vc As NotesViewEntryCollection
Set db = session.CurrentDatabase
Set view = db.GetView(“By Category”)
Set vc = view.AllEntries
then use the:
count = vc.Count
to get the number of documents…
Hope this solves your problem.
Subject: counting a document in view
Hi,
vwA.EntryCount should give you that number.
Best regards
Mario Varchmin
http://www.e-llennium.com/e-llennium/index_en.htm