Das Notes Forum

Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: zeeboo am 10.07.03 - 14:24:20

Titel: documente in view zählen
Beitrag von: zeeboo am 10.07.03 - 14:24:20
ich zähle meine doc's momentan so

Do Until doc Is Nothing
    cnt = cnt + 1
    Set doc = view.GetNextDocument( doc )
Loop

gibt es vielleicht eine schnellere art und weise?

mfg
Titel: Re:documente in view zählen
Beitrag von: Axel am 10.07.03 - 14:33:00
Hi,

versuch's mal so:

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("Name der Ansicht")
Set vc = view.AllEntries
Messagebox vc.Count

Axel
Titel: Re:documente in view zählen
Beitrag von: Glombi am 10.07.03 - 14:36:44
Hi,
schau mal hier:
http://www.atnotes.de/index.php?board=7&action=display&threadid=9572

Andreas
Titel: Re:documente in view zählen
Beitrag von: zeeboo am 10.07.03 - 14:41:51
aja so funkts :) thx