Apache OpenOffice (AOO) Bugzilla – Issue 94291
Support overriding of built-in identifiers in OOo Basic
Last modified: 2017-05-20 11:28:02 UTC
Macro crashes on v3.0, RC2 but worked fine on 2.4.1. Attached is the document that crashes.
Created attachment 56819 [details] Bar Code Macro Crashes v3.0 RC2
MRU->OS: I do not get a crash, but a Syntax error is thrwon when trying to run the Macro in the attached document. In OO 2.4.1. this was not the case. Maybe a candidate for 3.0.1?
It didn't crash here either. The syntax error is not a word processor issue - if an issue at all.
Running v3.0 RC3 now, the macro fails on the basic line that reads quote Private Function Replace(Source As String, Search As String, NewPart As String) endquote. The error box has: quote BASIC syntax error. Symbol Replace already defined differently. endquote
MRU->AB: The Macro in the attached document worked fine in OO 2.4.x but gives a Syntax error in OO3.0. Please have a look, thanks!
The problem is that the missing runtime function replace has been implemented in the mean time and now the self implemented replace is conflicting with the one that's built-in. These kind of incompatibilities cannot be avoided unless OOo Basic supports overriding of built-in identifiers. This is a general pro- blem as VB supports this. So as this issue has been set to the wrong component anyway I will use it to address this general problem. Summery -> Support overriding of built-in identifiers in OOo Basic Component -> Scripting Target -> OOo 3.x STARTED ab->joeconner: Sorry, but for now you can only rename your replace function or use the built-in one in OOo 3.0 in case your one was designed to simulate the original VB functionality. In general if you want to substitute a mis- sing runtime function by an own one, avoid using the original name as there is always the risk of a name clash in later versions otherwise.
I have bot been getting comments or updates on this issue. I tried to put my email address as an additional cc: but I received the error QUOTE The name joseph.conner@comcast.net is not a valid username. Perhaps you have misspelled it or the person does not have a role in this project. Please press back and try again. END QUOTE. Anyway, thanks for accepting the support for runtime function replace as a valid bug. I will look at this from time to time instead of depending on email notifications to keep me abreast of developments.
Is there anything new yet? Has a target milestone other than OOo3.x been determined? Thanks. Joseph.Conner@comcast.net
Reset assigne to the default "issues@openoffice.apache.org".