vb6 - Domino.NotesDocumentCollection - what order are the items in the collection in? -
i'm maintaining legacy vb6 app processes messages lotus notes databases. instance of notesdatabase, obtain notesdocumentcollection , loop through messages thusly:
set domcollection = domdatabase.alldocuments set domdocument = domcollection.getfirstdocument 'do domdocument set domdocument = domcollection.getnextdocument 'continue until no more documents
my question: possible know order documents returned in getfirstdocument , getnextdocument methods?
thanks!
the notesdocumentcollection
created e.g. alldocuments
unsorted. if @ order might discover documents appear in order of creation. there no guarantee , not helpful anyway.
if need sorted list of documents use notesviewentrycollection
instead sorted view.
if need of fields documents put them in view's columns , access them entry.columnvalues
. way higher performance reading every single document.
Comments
Post a Comment