Apache OpenOffice (AOO) Bugzilla – Issue 96159
VBA InStrRev is remembered by OpenOffice Basic
Last modified: 2017-05-20 11:29:30 UTC
The Basic function InStrRev is a VBA instruction, not a OOoBasic instruction. It has been introduced for VBA compatibility, and it is recognized in a Basic module with Option VBASupport 1. This works. However, once InStrRev has been executed, Basic accepts its use in any other module, even pure OOoBasic modules. This new instruction stays available until OpenOffice is closed. The consequence is a phantom instruction in OOoBasic: an instruction which will be supported or not supported, depending on a particular macro which may have been executed a long time ago, for example in a document. If a macro developer uses such instruction, supposing it is fully supported in OOoBasic, it may work or throw an error depending on previous activity. Next attachment shows the problem. Please investigate if there are other VBA instructions with the same implementation problem. Issue 27904 (current Milestone OOo Later) can be interpreted as introducing the full support of InStrRev by OOBasic (which would be better and would resolve this issue).
Created attachment 57942 [details] Use of VBA function InStrRev()
Andreas, please have a look ...
ab->bmarcelly: I think you are right. I will check if this excluding mechanism still (or at all) makes sense. If not we should remove it. -> STARTED, 3.x
Same problem with function StrReverse Dim s As String s = "abcdef GHIJK" MsgBox StrReverse(s) Here also, this nice function should be plainly supported by OOoBasic.
Reset assigne to the default "issues@openoffice.apache.org".