Returns the last document in a view.
public Document getLastDocument()
throws NotesException
Document
The last document in the view. Returns null if there are no documents in the view.
If the view is filtered by FTSearch, this method returns the last document in the filtered view.
The ViewNavigator and ViewEntryCollection classes provide more efficient methods for navigating views and accessing entries.
GetLastDocument method in LotusScript NotesView class
See examples