How to get the No# of document selected(highlighted) in the search result screen?

I have a module that uses the Notes COM object to access Notes UI. I am using 8.5 FP1 rev20090716.2050-FP1

So to get all the selected(highlighted) items from the mail box view, I would first call GetDocuments() from the NotesUIView to get the document collection and then call GetCount() and it correctly reports the no# of highlighted items.

However, if user is in the search result screen, it will not work at all. GetCount() will always return the total no# of the search result. Try couple other functions like NotesView.CLEAR, REFRESH(), GetCaretnoteid() does work in multiple selections…etc, still no help. Does anybody have any suggestion?

And also I found that the getCount() won’t work if there is only 1 item highlighted. One must have at least 2 highlighted items or highlight 2 items first and then deselect 1 among the two…

Any suggestion is appreciated. Thank you.