Why on earth did Lotus not make the R6 (and R6.5) NotesView.EntryCount property return a Long? Returning an integer, thus effectively breaking code on views containing more than 32767 documents is criminal.The same is true for NotesView.TopLevelEntryCount, where the esigner Help suggests “Where the count may exceed 32767, read this property into a Long and if it is negative add 65535”. Brilliant! Now a view may contain 65535 documents. And if it contains any more, it will simply be reported wrongly, since I assume the number is kept internally as a long, but simply returned as the lower two bytes.
The funny thing is, that notesDocumentCollection.Count returns a Long (always has), as does NotesViewEntryCollection.Count and NotesViewNavigator.Count
There may be backward compatibility reasons for keeping the property type as-is, but may I then suggest adding an EntryCountLong and TopLevelEntryCountLong property to NotesView to make them usable in applications that scale beyond 30,000 documents.