Hello everyone. The following search code with the last select statement should select all found instances of a string.
But the last one does not select it, the viewCursor stops at the beginning of the last instance found, then in the text the last found if you search from the beginning or the first found if you search from the bottom
The only solution for now is to add a dummy string that meets the search criteria to the bottom or bottom of the text.
Is this normal or am I wrong?
Thank you all for any help you have received
d = ThisComponent f = d.createSearchDescriptor() f.searchStyles=false f.SearchCaseSensitive=false f.SearchBackwards=true f.SearchString = "***" f.SearchRegularExpression=false oF = d.findAll(f): n=oF.Count d.currentController.select(oF)