Issue 94291 - Support overriding of built-in identifiers in OOo Basic
Summary: Support overriding of built-in identifiers in OOo Basic
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-24 18:41 UTC by joeconner
Modified: 2017-05-20 11:28 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Bar Code Macro Crashes v3.0 RC2 (11.84 KB, application/vnd.oasis.opendocument.text)
2008-09-24 18:44 UTC, joeconner
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description joeconner 2008-09-24 18:41:44 UTC
Macro crashes on v3.0, RC2 but worked fine on 2.4.1.
Attached is the document that crashes.
Comment 1 joeconner 2008-09-24 18:44:00 UTC
Created attachment 56819 [details]
Bar Code Macro Crashes v3.0 RC2
Comment 2 michael.ruess 2008-09-25 11:36:48 UTC
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?
Comment 3 Oliver Specht 2008-09-30 13:56:04 UTC
It didn't crash here either. The syntax error is not a word processor issue - if
an issue at all.
Comment 4 joeconner 2008-10-01 03:03:26 UTC
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
Comment 5 michael.ruess 2008-10-01 13:28:46 UTC
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!
Comment 6 ab 2008-10-07 11:44:19 UTC
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.
Comment 7 joeconner 2008-10-10 22:18:14 UTC
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. 
Comment 8 joeconner 2010-08-23 20:39:02 UTC
Is there anything new yet?  Has a target milestone other than OOo3.x been
determined?  Thanks.  Joseph.Conner@comcast.net
Comment 9 Marcus 2017-05-20 11:28:02 UTC
Reset assigne to the default "issues@openoffice.apache.org".