hi!
i have a question about the limitations of the getnthdocument view method. the designer help says:
Set notesDocument = notesView.GetNthDocument( index& )
Parameters
index&
Long. A number indicating the document to return. Use 1 to indicate the first document in the view, 2 to indicate the second document, and so on.
and when you lookup the long data type in the designer help you’ll find the following:
Long
Signed long integer -2,147,483,648 to 2,147,483,647
so the method should be safe to use on views with 2147483647 documents or less, or am i missing something? because when i test it on a view i don’t get any document hits on the position 31258 and forward (on a view containing 31275 documents).
can any one explain this to me and hopefully offer a fix?
**** A bit of code that generates this error ****
Set caseDoc = vpStatView.GetFirstDocument
casePosLong = 0
Do Until caseDoc Is Nothing
casePosLong = casePosLong + 1
Set secondDoc = vpStatView.GetNthDocument(casePosLong)
If secondDoc Is Nothing Then Error HNDL_ERR, "Hittade inte dokument med position " + Cstr(casePosLong) + " i vy " + vpStatView.Name
Set caseDoc = vpStatView.GetNextDocument(caseDoc)
Loop
**** End Code ****
regards Patrik Ström