Bug 157832 - Property and Method error when Macro Name same as Object
Summary: Property and Method error when Macro Name same as Object
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-20 00:36 UTC by Martin Brieger
Modified: 2024-04-28 03:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Brieger 2023-10-20 00:36:55 UTC
When a Macro has the same name as an Object, an Error is issued that Property or Method can not be found.

To re-create, save a Macro (File) with the name ComboBox and have a Macro with the same Object name. The Debugger shows the right Properties, but the Macro issues the Error that Property or Method can not be found. i.e. ComboBox.SelectedText

Apparently there is no distinction between the Module Name and the Object Name when a Macro is executed. It doesn't matter, if the Object is in a different Macro (sub routine).
Comment 1 Werner Tietz 2023-10-20 08:25:17 UTC
Hallo

please attach a Example-doc with Combobox and Makrocode

What do you expect? BASIC can't even distinguish between upper and lower case.
Comment 2 QA Administrators 2024-04-28 03:16:21 UTC
Dear Martin Brieger,

This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INSUFFICIENTDATA
due to lack of needed information.

For more information about our NEEDINFO policy please read the
wiki located here:
https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO

If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
 
Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-NeedInfo-Ping