Apache OpenOffice (AOO) Bugzilla – Issue 66117
Calling vFound.getString() causes statusbar reset
Last modified: 2013-02-24 21:10:06 UTC
Hi, when I worked with ThisComponent.findNext... found next mistake: After calling vFound.getString() statusbar is reset. In OOo 1.1.5 it works O.K. Next basic code and attachment file demonstrate it. sub makro1_Ctrl_M ThisComponent.CurrentController.statusIndicator.reset ThisComponent.CurrentController.statusIndicator.start("bla bla bla bla bla bla:", 10) dim count as long count = 0 RpDesc = ThisComponent.createReplaceDescriptor() RpDesc.SearchCaseSensitive = TRUE RpDesc.SearchRegularExpression = TRUE RpDesc.SearchString = "text" vFound = ThisComponent.findFirst(RpDesc) Do While Not IsNull(vFound) count = count + 1 ThisComponent.CurrentController.statusIndicator.setValue(count) report = cstr(count) ' Calling vFound.getString() causes statusbar reset report = report + " Found: "+ vFound.getString() msgbox report vFound = ThisComponent.findNext( vFound.End, RpDesc) Loop ThisComponent.CurrentController.statusIndicator.end end sub Thanks, Tom B.
Created attachment 36923 [details] Reset of StatusBar
JSC -> TL: can you please check this, it's writer API
Sorry, I misunderstand what do you wont me to check? Described mistake I tested on Writer document (see attachment).
The problem is not the getString but the searching in itself. This is another weird occurence of the problem that is already fixed by the issue 68822. Thus I'm setting the target to same as that issue. This one should be fine with the next release. *** This issue has been marked as a duplicate of 68822 ***
going to close ancient issues
closing